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

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


  IMethodBinding resolveConstructor(EnumConstantDeclaration enumConstantDeclaration) {
    org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode node = (org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode) this.newAstToOldAst.get(enumConstantDeclaration);
    if (node instanceof org.aspectj.org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) {
      org.aspectj.org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.aspectj.org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node;
      if (fieldDeclaration.getKind() == AbstractVariableDeclaration.ENUM_CONSTANT && fieldDeclaration.initialization != null) {
        AllocationExpression allocationExpression = (AllocationExpression) fieldDeclaration.initialization;
        return this.getMethodBinding(allocationExpression.binding);
      }
    }
    return null;
  }
View Full Code Here


            if (typeBinding != null) {
              return typeBinding;
            }
          } else {
            // should be an AllocationExpression
            AllocationExpression allocationExpression = (AllocationExpression) astNode;
            return this.getTypeBinding(allocationExpression.resolvedType);
          }
          break;
        case ASTNode.SIMPLE_NAME :
        case ASTNode.QUALIFIED_NAME :
View Full Code Here

      MessageSend messageSend = (MessageSend) node;
      IMethodBinding method = getMethodBinding(messageSend.binding);
      if (method == null) return null;
      return method.getReturnType();
    } else if (node instanceof AllocationExpression) {
      AllocationExpression allocation = (AllocationExpression) node;
      return getTypeBinding(allocation.resolvedType);
    } else if (node instanceof JavadocImplicitTypeReference) {
      JavadocImplicitTypeReference implicitRef = (JavadocImplicitTypeReference) node;
      return getTypeBinding(implicitRef.resolvedType);
    } else if (node instanceof org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeParameter) {
View Full Code Here

      return this.getVariableBinding(fieldDeclaration.binding);
    } else if (node instanceof MessageSend) {
      MessageSend messageSend = (MessageSend) node;
      return getMethodBinding(messageSend.binding);
    } else if (node instanceof AllocationExpression) {
      AllocationExpression allocation = (AllocationExpression) node;
      return getMethodBinding(allocation.binding);
    } else if (node instanceof JavadocImplicitTypeReference) {
      JavadocImplicitTypeReference implicitRef = (JavadocImplicitTypeReference) node;
      return getTypeBinding(implicitRef.resolvedType);
    } else if (node instanceof org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeParameter) {
View Full Code Here

TOP

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

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.