1 19 package org.netbeans.modules.javacore.jmiimpl.javamodel; 20 21 import org.netbeans.jmi.javamodel.LabeledStatement; 22 import org.netbeans.jmi.javamodel.LabeledStatementClass; 23 import org.netbeans.jmi.javamodel.Statement; 24 import org.netbeans.mdr.storagemodel.StorableClass; 25 26 30 public abstract class LabeledStatementClassImpl extends MEFactory implements LabeledStatementClass { 31 32 33 public LabeledStatementClassImpl(StorableClass s) { 34 super(s); 35 } 36 37 41 public LabeledStatement createLabeledStatement() { 42 return create(null, null); 43 } 44 45 private LabeledStatementImpl create(String label, Statement body) { 46 LabeledStatementImpl result = (LabeledStatementImpl) create(null); 47 result.setNew(); 48 result.setData(label, body); 49 return result; 50 } 51 52 public LabeledStatement createLabeledStatement(java.lang.String label, org.netbeans.jmi.javamodel.Statement body) { 53 return create(label, body); 54 } 55 } 56 | Popular Tags |