class FunctionBuilder {
/** Copies all the information from another function type. */
public FunctionBuilder copyFromOtherFunction(FunctionType otherType) {
this.name = otherType.getReferenceName();
this.sourceNode = otherType.getSource();
this.parametersNode = otherType.getParametersNode();
this.returnType = otherType.getReturnType();
this.typeOfThis = otherType.getTypeOfThis();
this.templateTypeName = otherType.getTemplateTypeName();
this.isConstructor = otherType.isConstructor();
this.isNativeType = otherType.isNativeObjectType();
return this;
}
}
|