public void copyDeepInfoInto(OJIfStatement copy) { super.copyDeepInfoInto(copy); copy.setCondition(getCondition()); if (getThenPart() != null) { copy.setThenPart(getThenPart().getDeepCopy()); } if (getElsePart() != null) { copy.setElsePart(getElsePart().getDeepCopy()); } }
public void copyDeepInfoInto(OJTryStatement copy) { super.copyDeepInfoInto(copy); if (getTryPart() != null) { copy.setTryPart(getTryPart().getDeepCopy()); } if (getCatchPart() != null) { copy.setCatchPart(getCatchPart().getDeepCopy()); } if (getCatchParam() != null) { copy.setCatchParam(getCatchParam().getDeepCopy()); } if (getFinallyPart() != null) { copy.setFinallyPart(getFinallyPart().getDeepCopy()); } }
public void copyDeepInfoInto(OJWhileStatement copy) { super.copyDeepInfoInto(copy); copy.setCondition(getCondition()); if ( getBody() != null ) { copy.setBody(getBody().getDeepCopy()); } }
public void copyDeepInfoInto(OJSwitchCase copy) { super.copyDeepInfoInto(copy); copy.setLabel(getLabel()); if ( getBody() != null ) { copy.setBody(getBody().getDeepCopy()); } }
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()); } }
protected void copyValuesDeep(OJOperation result){ result.setComment(getComment()); result.setBody(this.getBody().getDeepCopy()); result.setReturnType(this.getReturnType().getDeepCopy()); result.setFinal(this.isFinal()); result.setStatic(this.isStatic()); result.setVolatile(this.isVolatile()); result.setName(this.getName()); result.setAbstract(isAbstract()); for(OJParameter ojParameter:this.getParameters()){ result.addToParameters(ojParameter.getDeepCopy()); } result.setVisibility(this.getVisibility()); } protected void copyValues(OJOperation result){