/** * Constructor for OJForStatement * * @param name * @param comment * @param elemName * @param collection */ public OJForStatement(String name, String comment, String elemName, String collection) { super(name, comment, elemName, collection); setBody(new OJBlock()); }
/** * Constructor for OJForStatement */ public OJForStatement() { super(); setBody(new OJBlock()); }
public OJForStatement(String elementName, OJPathName type, String collection) { this(null, null, elementName, collection); setElemType(type); setBody(new OJBlock()); }
public void copyDeepInfoInto(OJForStatement copy) { super.copyDeepInfoInto(copy); copy.setElemName(getElemName()); copy.setCollection(getCollection()); if (getElemType() != null) { copy.setElemType(getElemType().getDeepCopy()); } if (getBody() != null) { copy.setBody(getBody().getDeepCopy()); } }
/** Copies all attributes and associations of this instance into 'copy'. True parts, i.e. associations marked 'aggregate' or 'composite', and attributes, are copied as well. References to other objects, i.e. associations not marked 'aggregate' or 'composite', will not be copied. The 'copy' will refer to the same objects as the original (this) instance. * * @param copy */ public void copyInfoInto(OJForStatement copy) { super.copyInfoInto(copy); copy.setElemName(getElemName()); copy.setCollection(getCollection()); if ( getElemType() != null ) { copy.setElemType(getElemType()); } if ( getBody() != null ) { copy.setBody(getBody()); } }
ojForStatement.setBody(new OJBlock()); OJSimpleStatement forStatement = new OJSimpleStatement("this." + pWrap.fieldname() + ".z_internalAdder(s)"); ojForStatement.getBody().addToStatements(forStatement);
ojForStatement = new OJForStatement("s", pWrap.javaBaseTypePath(), "(" + pWrap.javaBaseTypePath().getLast() + "[])umlgNode"); ojForStatement.setBody(new OJBlock()); OJSimpleStatement forStatement; if (pWrap.isDataType()) {