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