Class EmbedCode

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

    public class EmbedCode
    extends GDecl
    implements java.lang.Cloneable
    • Field Detail

      • tokenString_Code

        protected java.lang.String tokenString_Code
    • Constructor Detail

      • EmbedCode

        public EmbedCode()
    • 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 GDecl
      • numChildren

        protected int numChildren()
        Overrides:
        numChildren in class GDecl
      • clone

        public EmbedCode clone()
                        throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class GDecl
        Throws:
        java.lang.CloneNotSupportedException
      • fullCopy

        @Deprecated
        public EmbedCode 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.
        Specified by:
        fullCopy in class GDecl
        Returns:
        dangling copy of the subtree at this node
      • treeCopyNoTransform

        public EmbedCode treeCopyNoTransform()
        Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
        Specified by:
        treeCopyNoTransform in class GDecl
        Returns:
        dangling copy of the subtree at this node
      • treeCopy

        public EmbedCode 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.
        Specified by:
        treeCopy in class GDecl
        Returns:
        dangling copy of the subtree at this node
      • setCode

        public void setCode​(java.lang.String value)
        Replaces the lexeme Code.
        Parameters:
        value - The new value for the lexeme Code.
      • getCode

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