Package antlr

Class CommonAST

    • Field Detail

      • ttype

        int ttype
      • text

        java.lang.String text
    • Constructor Detail

      • CommonAST

        public CommonAST()
      • CommonAST

        public CommonAST​(Token tok)
    • Method Detail

      • getText

        public java.lang.String getText()
        Get the token text for this node
        Specified by:
        getText in interface AST
        Overrides:
        getText in class BaseAST
      • getType

        public int getType()
        Get the token type for this node
        Specified by:
        getType in interface AST
        Overrides:
        getType in class BaseAST
      • initialize

        public void initialize​(int t,
                               java.lang.String txt)
        Specified by:
        initialize in interface AST
        Specified by:
        initialize in class BaseAST
      • setText

        public void setText​(java.lang.String text_)
        Set the token text for this node
        Specified by:
        setText in interface AST
        Overrides:
        setText in class BaseAST
      • setType

        public void setType​(int ttype_)
        Set the token type for this node
        Specified by:
        setType in interface AST
        Overrides:
        setType in class BaseAST