1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.*; 22 import org.netbeans.mdr.storagemodel.StorableClass; 23 24 25 29 public abstract class InfixExpressionClassImpl extends MEFactory implements InfixExpressionClass { 30 31 32 public InfixExpressionClassImpl(StorableClass s) { 33 super(s); 34 } 35 36 40 public InfixExpression createInfixExpression() { 41 return create(null, null, null); 42 } 43 44 private InfixExpressionImpl create(Expression leftSide, Operator operator, Expression rightSide) { 45 InfixExpressionImpl result = (InfixExpressionImpl) create(null); 46 result.setNew(); 47 result.setData(leftSide, operator, rightSide); 48 return result; 49 } 50 51 public InfixExpression createInfixExpression(Expression leftSide, Operator operator, Expression rightSide) { 52 return create(leftSide, operator, rightSide); 53 } 54 } 55 | Popular Tags |