/** * Creates a new complete constructor {@code AAccessSpecifierAccessSpecifier} 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 access_ the {@link PAccess} node for the {@code access} child of this {@link AAccessSpecifierAccessSpecifier} node * @param static_ the {@link TStatic} node for the {@code static} child of this {@link AAccessSpecifierAccessSpecifier} node * @param async_ the {@link TAsync} node for the {@code async} child of this {@link AAccessSpecifierAccessSpecifier} node * @param pure_ the {@link Boolean} node for the {@code pure} child of this {@link AAccessSpecifierAccessSpecifier} node */ public AAccessSpecifierAccessSpecifier(PAccess access_, TStatic static_, TAsync async_, Boolean pure_) { super(); this.setAccess(access_); this.setStatic(static_); this.setAsync(async_); this.setPure(pure_); }
public static AAccessSpecifierAccessSpecifier newAAccessSpecifierAccessSpecifier( PAccess access, boolean isStatic, boolean isAsync, boolean isPure) { AAccessSpecifierAccessSpecifier result = new AAccessSpecifierAccessSpecifier(); result.setAccess(access); result.setStatic(isStatic ? new TStatic() : null); result.setAsync(isAsync ? new TAsync() : null); result.setPure(isPure); return result; }
acc.setAccess(new APublicAccess()); // Guaranteed to be accessible