1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.ConditionalExpression; 22 import org.netbeans.jmi.javamodel.ConditionalExpressionClass; 23 import org.netbeans.jmi.javamodel.Expression; 24 import org.netbeans.mdr.storagemodel.StorableClass; 25 26 27 28 32 public abstract class ConditionalExpressionClassImpl extends MEFactory implements ConditionalExpressionClass { 33 34 35 public ConditionalExpressionClassImpl(StorableClass s) { 36 super(s); 37 } 38 39 43 public ConditionalExpression createConditionalExpression() { 44 return create(null, null, null); 45 } 46 47 private ConditionalExpressionImpl create(Expression condition, Expression truePart, Expression falsePart) { 48 ConditionalExpressionImpl result = (ConditionalExpressionImpl) create(null); 49 result.setNew(); 50 result.setData(condition, truePart, falsePart); 51 return result; 52 } 53 54 public ConditionalExpression createConditionalExpression(Expression condition, Expression truePart, Expression falsePart) { 55 return create(condition, truePart, falsePart); 56 } 57 } 58 | Popular Tags |