Package com.googlecode.aviator.lexer.token

Examples of com.googlecode.aviator.lexer.token.DelegateToken


                    this.asmCodeGenerator.onTernaryRight(token);
                    break;
                }
                break;
            case Delegate:
                DelegateToken delegateToken = (DelegateToken) token;
                final Token<?> realToken = delegateToken.getToken();
                switch (delegateToken.getDelegateTokenType()) {
                case And_Left:
                    this.asmCodeGenerator.onAndLeft(realToken);
                    break;
                case Join_Left:
                    this.asmCodeGenerator.onJoinLeft(realToken);
View Full Code Here


    }


    public void onAndLeft(Token<?> lookhead) {
        tokenList.add(new DelegateToken(lookhead == null ? -1 : lookhead.getStartIndex(), lookhead,
            DelegateTokenType.And_Left));
    }
View Full Code Here

        tokenList.add(new OperatorToken(lookhead == null ? -1 : lookhead.getStartIndex(), OperatorType.INDEX));
    }


    public void onElementStart(Token<?> lookhead) {
        tokenList.add(new DelegateToken(lookhead == null ? -1 : lookhead.getStartIndex(), lookhead,
            DelegateTokenType.Element_Start));

    }
View Full Code Here

    }


    public void onJoinLeft(Token<?> lookhead) {
        tokenList.add(new DelegateToken(lookhead == null ? -1 : lookhead.getStartIndex(), lookhead,
            DelegateTokenType.Join_Left));
    }
View Full Code Here

    }


    public void onMethodName(Token<?> lookhead) {
        tokenList.add(new DelegateToken(lookhead == null ? -1 : lookhead.getStartIndex(), lookhead,
            DelegateTokenType.Method_Name));

    }
View Full Code Here

    }


    public void onMethodParameter(Token<?> lookhead) {
        tokenList.add(new DelegateToken(lookhead == null ? -1 : lookhead.getStartIndex(), lookhead,
            DelegateTokenType.Method_Param));

    }
View Full Code Here

    }


    public void onTernaryBoolean(Token<?> lookhead) {
        tokenList.add(new DelegateToken(lookhead == null ? -1 : lookhead.getStartIndex(), lookhead,
            DelegateTokenType.Ternary_Boolean));

    }
View Full Code Here

    }


    public void onTernaryLeft(Token<?> lookhead) {
        tokenList.add(new DelegateToken(lookhead == null ? -1 : lookhead.getStartIndex(), lookhead,
            DelegateTokenType.Ternary_Left));

    }
View Full Code Here

TOP

Related Classes of com.googlecode.aviator.lexer.token.DelegateToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.