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