Class LexToken

  • All Implemented Interfaces:
    Serializable, Cloneable, Comparable<org.intocps.maestro.ast.node.INode>, org.intocps.maestro.ast.node.INode, org.intocps.maestro.ast.node.IToken

    public class LexToken
    extends org.intocps.maestro.ast.node.Token
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.intocps.maestro.ast.node.Node

        _visitedNodes
    • Constructor Summary

      Constructors 
      Constructor Description
      LexToken​(String text, int line, int pos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(org.intocps.maestro.ast.analysis.intf.IAnalysis analysis)
      Applies this node to the IAnalysis visitor analysis.
      <A> A apply​(org.intocps.maestro.ast.analysis.intf.IAnswer<A> caller)
      Returns the answer for caller by applying this node to the IAnswer visitor.
      <Q> void apply​(org.intocps.maestro.ast.analysis.intf.IQuestion<Q> caller, Q question)
      Applies this node to the IQuestion visitor caller.
      <Q,​A>
      A
      apply​(org.intocps.maestro.ast.analysis.intf.IQuestionAnswer<Q,​A> caller, Q question)
      Returns the answer for answer by applying this node with the question to the IQuestionAnswer visitor.
      Object clone()  
      org.intocps.maestro.ast.node.INode clone​(Map<org.intocps.maestro.ast.node.INode,​org.intocps.maestro.ast.node.INode> oldToNewMap)  
      String toString()  
      • Methods inherited from class org.intocps.maestro.ast.node.Token

        getChildren, getLine, getPos, getText, removeChild, setLine, setPos, setText
      • Methods inherited from class org.intocps.maestro.ast.node.Node

        cloneList, cloneList, cloneListExternal, cloneListExternal, cloneListList, cloneListList, cloneNode, cloneNode, compareTo, getAllFields, getAncestor, parent, parent, replaceChild
      • Methods inherited from interface org.intocps.maestro.ast.node.INode

        getAncestor, parent, parent, replaceChild
    • Constructor Detail

      • LexToken

        public LexToken​(String text,
                        int line,
                        int pos)
    • Method Detail

      • clone

        public Object clone()
        Specified by:
        clone in interface org.intocps.maestro.ast.node.INode
        Specified by:
        clone in class org.intocps.maestro.ast.node.Node
      • clone

        public org.intocps.maestro.ast.node.INode clone​(Map<org.intocps.maestro.ast.node.INode,​org.intocps.maestro.ast.node.INode> oldToNewMap)
        Specified by:
        clone in interface org.intocps.maestro.ast.node.INode
        Specified by:
        clone in class org.intocps.maestro.ast.node.Node
      • apply

        public void apply​(org.intocps.maestro.ast.analysis.intf.IAnalysis analysis)
                   throws org.intocps.maestro.ast.analysis.AnalysisException
        Description copied from class: org.intocps.maestro.ast.node.Node
        Applies this node to the IAnalysis visitor analysis.
        Specified by:
        apply in interface org.intocps.maestro.ast.node.INode
        Specified by:
        apply in class org.intocps.maestro.ast.node.Node
        Parameters:
        analysis - the IAnalysis to which this node is applied
        Throws:
        org.intocps.maestro.ast.analysis.AnalysisException
      • apply

        public <A> A apply​(org.intocps.maestro.ast.analysis.intf.IAnswer<A> caller)
                    throws org.intocps.maestro.ast.analysis.AnalysisException
        Description copied from class: org.intocps.maestro.ast.node.Node
        Returns the answer for caller by applying this node to the IAnswer visitor.
        Specified by:
        apply in interface org.intocps.maestro.ast.node.INode
        Specified by:
        apply in class org.intocps.maestro.ast.node.Node
        Parameters:
        caller - the IAnswer to which this node is applied
        Returns:
        the answer as returned from caller
        Throws:
        org.intocps.maestro.ast.analysis.AnalysisException
      • apply

        public <Q> void apply​(org.intocps.maestro.ast.analysis.intf.IQuestion<Q> caller,
                              Q question)
                       throws org.intocps.maestro.ast.analysis.AnalysisException
        Description copied from class: org.intocps.maestro.ast.node.Node
        Applies this node to the IQuestion visitor caller.
        Specified by:
        apply in interface org.intocps.maestro.ast.node.INode
        Specified by:
        apply in class org.intocps.maestro.ast.node.Node
        Parameters:
        caller - the IQuestion to which this node is applied
        question - the question provided to caller
        Throws:
        org.intocps.maestro.ast.analysis.AnalysisException
      • apply

        public <Q,​A> A apply​(org.intocps.maestro.ast.analysis.intf.IQuestionAnswer<Q,​A> caller,
                                   Q question)
                            throws org.intocps.maestro.ast.analysis.AnalysisException
        Description copied from class: org.intocps.maestro.ast.node.Node
        Returns the answer for answer by applying this node with the question to the IQuestionAnswer visitor.
        Specified by:
        apply in interface org.intocps.maestro.ast.node.INode
        Specified by:
        apply in class org.intocps.maestro.ast.node.Node
        Parameters:
        caller - the IQuestionAnswer to which this node is applied
        question - the question provided to answer
        Returns:
        the answer as returned from answer
        Throws:
        org.intocps.maestro.ast.analysis.AnalysisException