Package org.aspectj.org.eclipse.jdt.internal.compiler.ast

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Literal


          break;
        case ASTNode.BOOLEAN_LITERAL :
        case ASTNode.NULL_LITERAL :
        case ASTNode.CHARACTER_LITERAL :
        case ASTNode.NUMBER_LITERAL :
          Literal literal = (Literal) this.newAstToOldAst.get(expression);
          return this.getTypeBinding(literal.literalType(null));
        case ASTNode.THIS_EXPRESSION :
          ThisReference thisReference = (ThisReference) this.newAstToOldAst.get(expression);
          BlockScope blockScope = (BlockScope) this.astNodesToBlockScope.get(expression);
          if (blockScope != null) {
            return this.getTypeBinding(thisReference.resolveType(blockScope));
View Full Code Here


    tok.sourceEnd = this.rParenPos;
    pushOnAstStack(tok);
  }

  protected void consumePseudoTokenLiteral() {
    Literal literal = (Literal) expressionStack[expressionPtr--];
    expressionLengthPtr--;
    //System.out.println("literal: " + new String(literal.source()));

    ASTNode tok = declarationFactory.createPseudoToken(this, new String(literal.source()), false);
    declarationFactory.setLiteralKind(tok,"string");
    tok.sourceStart = literal.sourceStart;
    tok.sourceEnd = literal.sourceEnd;
    pushOnAstStack(tok);
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Literal

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.