Class GSym

  • All Implemented Interfaces:
    java.lang.Cloneable, Parser.Symbol

    public class GSym
    extends ASTNode<ASTNode>
    implements java.lang.Cloneable
    • Field Detail

      • tokenString_Name

        protected java.lang.String tokenString_Name
    • Constructor Detail

      • GSym

        public GSym()
    • Method Detail

      • init$Children

        public void init$Children()
        Initializes the child array to the correct size. Initializes List and Opt nta children.
        Overrides:
        init$Children in class ASTNode<ASTNode>
      • clone

        public GSym clone()
                   throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class ASTNode<ASTNode>
        Throws:
        java.lang.CloneNotSupportedException
      • fullCopy

        @Deprecated
        public GSym fullCopy()
        Deprecated.
        Please use treeCopy or treeCopyNoTransform instead
        Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
        Overrides:
        fullCopy in class ASTNode<ASTNode>
        Returns:
        dangling copy of the subtree at this node
      • treeCopyNoTransform

        public GSym treeCopyNoTransform()
        Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
        Overrides:
        treeCopyNoTransform in class ASTNode<ASTNode>
        Returns:
        dangling copy of the subtree at this node
      • treeCopy

        public GSym treeCopy()
        Create a deep copy of the AST subtree at this node. The subtree of this node is traversed to trigger rewrites before copy. The copy is dangling, i.e. has no parent.
        Overrides:
        treeCopy in class ASTNode<ASTNode>
        Returns:
        dangling copy of the subtree at this node
      • setName

        public void setName​(java.lang.String value)
        Replaces the lexeme Name.
        Parameters:
        value - The new value for the lexeme Name.
      • getName

        @Token(name="Name")
        public java.lang.String getName()
        Retrieves the value for the lexeme Name.
        Returns:
        The value for the lexeme Name.