/** * Creates a new complete constructor {@code AClassType} 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 name_ the {@link ILexNameToken} node for the {@code name} child of this {@link AClassType} node * @param classdef_ the {@link SClassDefinition} <b>graph</a> node for the {@code classdef} child of this {@link AClassType} node. * <i>The parent of this {@code classdef } will not be changed by adding it to this node.</i> */ public AClassType(ILexLocation location_, Boolean resolved_, List<? extends PDefinition> definitions_, ILexNameToken name_, SClassDefinition classdef_) { super(location_,resolved_,definitions_); this.setName(name_); this.setClassdef(classdef_); }
public static AClassType newAClassType(ILexLocation location, SClassDefinition classdef) { AClassType result = new AClassType(); initType(result, location); result.setClassdef(classdef); result.setName(classdef.getName().clone()); return result; }