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 AssignmentClassImpl extends MEFactory implements AssignmentClass { 30 31 32 public AssignmentClassImpl(StorableClass s) { 33 super(s); 34 } 35 36 40 public Assignment createAssignment() { 41 return create(null, null, null); 42 } 43 44 private AssignmentImpl create(PrimaryExpression leftSide, Operator operator, Expression rightSide) { 45 AssignmentImpl result = (AssignmentImpl) create(null); 46 result.setNew(); 47 result.setData(leftSide, operator, rightSide); 48 return result; 49 } 50 51 public Assignment createAssignment(PrimaryExpression leftSide, Operator operator, Expression rightSide) { 52 return create(leftSide, operator, rightSide); 53 } 54 } 55 | Popular Tags |