/** * Creates a new tree field only constructor {@code AMethodTypeIR TAG=method} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param params_ the {@link NodeList} node for the {@code params} child of this {@link AMethodTypeIR} node * @param result_ the {@link STypeIR} node for the {@code result} child of this {@link AMethodTypeIR} node * @param equivalent_ the {@link PType} node for the {@code equivalent} child of this {@link AMethodTypeIR} node */ public AMethodTypeIR(Boolean optional_, ANamedTypeDeclIR namedInvType_, List<? extends STypeIR> params_, STypeIR result_, PType equivalent_) { super(null,null,null,optional_,namedInvType_); this.setParams(params_); this.setResult(result_); this.setEquivalent(equivalent_); }
/** * Creates a new complete constructor {@code AMethodTypeIR} node with the given nodes as children. * @deprecated This method should not be used, use AstFactory instead. * The basic child nodes are removed from their previous parents. * @param params_ the {@link NodeList} node for the {@code params} child of this {@link AMethodTypeIR} node * @param result_ the {@link STypeIR} node for the {@code result} child of this {@link AMethodTypeIR} node * @param equivalent_ the {@link PType} node for the {@code equivalent} child of this {@link AMethodTypeIR} node */ public AMethodTypeIR(SourceNode sourceNode_, Object tag_, List<? extends ClonableString> metaData_, Boolean optional_, ANamedTypeDeclIR namedInvType_, List<? extends STypeIR> params_, STypeIR result_, PType equivalent_) { super(sourceNode_,tag_,metaData_,optional_,namedInvType_); this.setParams(params_); this.setResult(result_); this.setEquivalent(equivalent_); }