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