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 PostfixExpressionClassImpl extends MEFactory implements PostfixExpressionClass { 30 31 32 public PostfixExpressionClassImpl(StorableClass s) { 33 super(s); 34 } 35 36 40 public PostfixExpression createPostfixExpression() { 41 return create(null, null); 42 } 43 44 private PostfixExpressionImpl create(Operator operator, UnaryExpression expression) { 45 PostfixExpressionImpl result = (PostfixExpressionImpl) create(null); 46 result.setNew(); 47 result.setData(operator, expression); 48 return result; 49 } 50 51 public PostfixExpression createPostfixExpression(Operator operator, UnaryExpression expression) { 52 return create(operator, expression); 53 } 54 } 55 | Popular Tags |