Class Screener<D>

java.lang.Object
eu.bandm.tools.lexic.LookaheadTokenProcessor<D,TokenType,int[]>
eu.bandm.tools.tpath.parser2.Screener<D>
All Implemented Interfaces:
LookaheadTokenSource<D,TokenType,int[]>, Supplier<Token<D,TokenType>>

public class Screener<D> extends LookaheadTokenProcessor<D,TokenType,int[]>
Token processor to recognize context-dependent token types. It has to be inserted into the pipeline after white-space-ignorer and before parser.
  • Constructor Details

  • Method Details

    • get

      public Token<D,TokenType> get()
      A NAME token in operator mode is possibly replaced by an operatorKeyword. Else, if followed by a "(" it is replaced by a noteTypeKeyword, or by a FUNCTION_NAME token. If followed by a "::" it is possibly replaced by an axisKeyword. A STAR token in operator mode is replaced by a MULT token.