类 TreePatternLexer


  • public class TreePatternLexer
    extends java.lang.Object
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static int ARG  
      static int BEGIN  
      protected int c
      Current char
      static int COLON  
      static int DOT  
      static int END  
      static int EOF  
      boolean error  
      static int ID  
      protected int n
      How long is the pattern in char?
      protected int p
      Index into input string
      protected java.lang.String pattern
      The tree pattern to lex like "(A B C)"
      static int PERCENT  
      java.lang.StringBuffer sval
      Set when token type is ID or ARG (name mimics Java's StreamTokenizer)
    • 构造器概要

      构造器 
      构造器 说明
      TreePatternLexer​(java.lang.String pattern)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected void consume()  
      int nextToken()  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • pattern

        protected java.lang.String pattern
        The tree pattern to lex like "(A B C)"
      • p

        protected int p
        Index into input string
      • c

        protected int c
        Current char
      • n

        protected int n
        How long is the pattern in char?
      • sval

        public java.lang.StringBuffer sval
        Set when token type is ID or ARG (name mimics Java's StreamTokenizer)
      • error

        public boolean error
    • 构造器详细资料

      • TreePatternLexer

        public TreePatternLexer​(java.lang.String pattern)
    • 方法详细资料

      • nextToken

        public int nextToken()
      • consume

        protected void consume()