Package com.google.minijoe.compiler.ast

Examples of com.google.minijoe.compiler.ast.ThisLiteral


  }

  private Expression parsePrimaryExpression() throws CompilerException {
    if (nextToken == Token.KEYWORD_THIS) {
      readToken(Token.KEYWORD_THIS);
      return new ThisLiteral();

    } else if (nextToken == Token.KEYWORD_NULL) {
      readToken(Token.KEYWORD_NULL);
      return new NullLiteral();
View Full Code Here


  }

  public void testThisExpression() throws CompilerException {
    assertParserOutput(
        new ExpressionStatement(
            new ThisLiteral()
        ),
        "this;"
    );
  }
View Full Code Here

TOP

Related Classes of com.google.minijoe.compiler.ast.ThisLiteral

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.