/** Constructor for OJBlockGEN * * @param name * @param comment */ protected OJBlockGEN(String name, String comment) { super(); super.setName(name); super.setComment(comment); if ( usesAllInstances ) { allInstances.add(((OJBlock)this)); } }
/** Constructor for OJTryStatementGEN * * @param name * @param comment */ protected OJTryStatementGEN(String name, String comment) { super(); super.setName(name); super.setComment(comment); if ( usesAllInstances ) { allInstances.add(((OJTryStatement)this)); } }
/** Constructor for OJSwitchStatementGEN * * @param name * @param comment * @param condition */ protected OJSwitchStatementGEN(String name, String comment, String condition) { super(); super.setName(name); super.setComment(comment); this.setCondition(condition); if ( usesAllInstances ) { allInstances.add(((OJSwitchStatement)this)); } }
/** Constructor for OJIfStatementGEN * * @param name * @param comment * @param condition */ protected OJIfStatementGEN(String name, String comment, String condition) { super(); super.setName(name); super.setComment(comment); this.setCondition(condition); if ( usesAllInstances ) { allInstances.add(((OJIfStatement)this)); } }
/** Constructor for OJSimpleStatementGEN * * @param name * @param comment * @param expression */ protected OJSimpleStatementGEN(String name, String comment, String expression) { super(); super.setName(name); super.setComment(comment); this.setExpression(expression); if ( usesAllInstances ) { allInstances.add(((OJSimpleStatement)this)); } }
/** Constructor for OJWhileStatementGEN * * @param name * @param comment * @param condition */ protected OJWhileStatementGEN(String name, String comment, String condition) { super(); super.setName(name); super.setComment(comment); this.setCondition(condition); if ( usesAllInstances ) { allInstances.add(((OJWhileStatement)this)); } }
/** Constructor for OJForStatementGEN * * @param name * @param comment * @param elemName * @param collection */ protected OJForStatementGEN(String name, String comment, String elemName, String collection) { super(); super.setName(name); super.setComment(comment); this.setElemName(elemName); this.setCollection(collection); if ( usesAllInstances ) { allInstances.add(((OJForStatement)this)); } }