1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.Expression; 22 import org.netbeans.jmi.javamodel.IfStatement; 23 import org.netbeans.jmi.javamodel.IfStatementClass; 24 import org.netbeans.jmi.javamodel.Statement; 25 import org.netbeans.mdr.storagemodel.StorableClass; 26 27 31 public abstract class IfStatementClassImpl extends MEFactory implements IfStatementClass { 32 33 34 public IfStatementClassImpl(StorableClass s) { 35 super(s); 36 } 37 38 42 public IfStatement createIfStatement() { 43 return create(null, null, null); 44 } 45 46 private IfStatementImpl create(Expression expression, Statement thenPart, Statement elsePart) { 47 IfStatementImpl result = (IfStatementImpl) create(null); 48 result.setNew(); 49 result.setData(expression, thenPart, elsePart); 50 return result; 51 } 52 53 public IfStatement createIfStatement(Expression expression, Statement thenPart, Statement elsePart) { 54 return create(expression, thenPart, elsePart); 55 } 56 } 57 | Popular Tags |