Exemplo n.º 1
0
 public void onMethodParameter(Token<?> lookhead) {
   this.tokenList.add(
       new DelegateToken(
           lookhead == null ? -1 : lookhead.getStartIndex(),
           lookhead,
           DelegateTokenType.Method_Param));
 }
Exemplo n.º 2
0
 public void onTernaryLeft(Token<?> lookhead) {
   this.tokenList.add(
       new DelegateToken(
           lookhead == null ? -1 : lookhead.getStartIndex(),
           lookhead,
           DelegateTokenType.Ternary_Left));
 }
Exemplo n.º 3
0
 public void onArrayIndexStart(Token<?> lookhead) {
   this.tokenList.add(
       new DelegateToken(
           lookhead == null ? -1 : lookhead.getStartIndex(),
           lookhead,
           DelegateTokenType.Index_Start));
 }
Exemplo n.º 4
0
 public void onBitXor(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.BIT_XOR));
 }
Exemplo n.º 5
0
 public void onUnsignedShiftRight(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(
           lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.U_SHIFT_RIGHT));
 }
Exemplo n.º 6
0
 public void onShiftLeft(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(
           lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.SHIFT_LEFT));
 }
Exemplo n.º 7
0
 public void onTernaryRight(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.TERNARY));
 }
Exemplo n.º 8
0
 public void onSub(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.SUB));
 }
Exemplo n.º 9
0
 public void onMethodInvoke(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.FUNC));
 }
Exemplo n.º 10
0
 public void onJoinRight(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.OR));
 }
Exemplo n.º 11
0
 public void onArrayIndexEnd(Token<?> lookhead) {
   this.tokenList.add(
       new OperatorToken(lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.INDEX));
 }