Class Token


  • public class Token
    extends java.lang.Object
    A token is used for processing an XPath Expression into postfix notation via OPStack. Each token knows its type (1-6) as well as its priority.
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(java.lang.String name, int type)
      This constructor sets the name and type to the input values, and sets the priority to the input type.
      Token​(java.lang.String name, int type, int priority)
      This constructor sets the name, type and priority to the input values.
    • Constructor Detail

      • Token

        public Token​(java.lang.String name,
                     int type)
        This constructor sets the name and type to the input values, and sets the priority to the input type.
        Parameters:
        name -
        type -
      • Token

        public Token​(java.lang.String name,
                     int type,
                     int priority)
        This constructor sets the name, type and priority to the input values.
        Parameters:
        name -
        type -
        priority -
    • Method Detail

      • getName

        public java.lang.String getName()
      • getType

        public int getType()
      • getPriority

        public int getPriority()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object