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

Examples of org.eclipse.jdt.internal.compiler.ast.TypeDeclaration


  while ((fieldIndex < fieldCounter)
      || (memberTypeIndex < memberTypeCounter)
      || (methodIndex < methodCounter)) {
    FieldDeclaration nextFieldDeclaration = null;
    AbstractMethodDeclaration nextMethodDeclaration = null;
    TypeDeclaration nextMemberDeclaration = null;
   
    int position = Integer.MAX_VALUE;
    int nextDeclarationType = -1;
    if (fieldIndex < fieldCounter) {
      nextFieldDeclaration = fields[fieldIndex];
View Full Code Here


public long getAnnotationTagBits() {
  MethodBinding originalMethod = original();
  if ((originalMethod.tagBits & TagBits.AnnotationResolved) == 0 && originalMethod.declaringClass instanceof SourceTypeBinding) {
    ClassScope scope = ((SourceTypeBinding) originalMethod.declaringClass).scope;
    if (scope != null) {
      TypeDeclaration typeDecl = scope.referenceContext;
      AbstractMethodDeclaration methodDecl = typeDecl.declarationOf(originalMethod);
      if (methodDecl != null)
        ASTNode.resolveAnnotations(methodDecl.scope, methodDecl.annotations, originalMethod);
    }
  }
  return originalMethod.tagBits;
View Full Code Here

  int index = 1;
  do {
    needRecheck = false;
    FieldBinding existingField;
    if ((existingField = getField(synthField.name, true /*resolve*/)) != null) {
      TypeDeclaration typeDecl = this.scope.referenceContext;
      FieldDeclaration[] fieldDeclarations = typeDecl.fields;
      int max = fieldDeclarations == null ? 0 : fieldDeclarations.length;
      for (int i = 0; i < max; i++) {
        FieldDeclaration fieldDecl = fieldDeclarations[i];
        if (fieldDecl.binding == existingField) {
View Full Code Here

public LocalTypeBinding(ClassScope scope, SourceTypeBinding enclosingType, CaseStatement switchCase) {
  super(
    new char[][] {CharOperation.concat(LocalTypeBinding.LocalTypePrefix, scope.referenceContext.name)},
    scope,
    enclosingType);
  TypeDeclaration typeDeclaration = scope.referenceContext;
  if ((typeDeclaration.bits & ASTNode.IsAnonymousType) != 0) {
    this.tagBits |= TagBits.AnonymousTypeMask;
  } else {
    this.tagBits |= TagBits.LocalTypeMask;
  }
View Full Code Here

  boolean needRecheck;
  do {
    needRecheck = false;
    FieldBinding existingField;
    if ((existingField = getField(synthField.name, true /*resolve*/)) != null) {
      TypeDeclaration typeDecl = this.scope.referenceContext;
      FieldDeclaration[] fieldDeclarations = typeDecl.fields;
      int max = fieldDeclarations == null ? 0 : fieldDeclarations.length;
      for (int i = 0; i < max; i++) {
        FieldDeclaration fieldDecl = fieldDeclarations[i];
        if (fieldDecl.binding == existingField) {
View Full Code Here

    this.synthetics[SourceTypeBinding.CLASS_LITERAL_EMUL].put(targetType, synthField);
  }
  // ensure there is not already such a field defined by the user
  FieldBinding existingField;
  if ((existingField = getField(synthField.name, true /*resolve*/)) != null) {
    TypeDeclaration typeDecl = blockScope.referenceType();
    FieldDeclaration[] typeDeclarationFields = typeDecl.fields;
    int max = typeDeclarationFields == null ? 0 : typeDeclarationFields.length;
    for (int i = 0; i < max; i++) {
      FieldDeclaration fieldDecl = typeDeclarationFields[i];
      if (fieldDecl.binding == existingField) {
View Full Code Here

  int index = 0;
  do {
    needRecheck = false;
    FieldBinding existingField;
    if ((existingField = getField(synthField.name, true /*resolve*/)) != null) {
      TypeDeclaration typeDecl = this.scope.referenceContext;
      int max = (typeDecl.fields == null) ? 0 : typeDecl.fields.length;
      for (int i = 0; i < max; i++) {
        FieldDeclaration fieldDecl = typeDecl.fields[i];
        if (fieldDecl.binding == existingField) {
          synthField.name = CharOperation.concat(
View Full Code Here

  int index = 0;
  do {
    needRecheck = false;
    FieldBinding existingField;
    if ((existingField = getField(synthField.name, true /*resolve*/)) != null) {
      TypeDeclaration typeDecl = this.scope.referenceContext;
      FieldDeclaration[] fieldDeclarations = typeDecl.fields;
      int max = fieldDeclarations == null ? 0 : fieldDeclarations.length;
      for (int i = 0; i < max; i++) {
        FieldDeclaration fieldDecl = fieldDeclarations[i];
        if (fieldDecl.binding == existingField) {
View Full Code Here

  int index = 0;
  do {
    needRecheck = false;
    FieldBinding existingField;
    if ((existingField = getField(synthField.name, true /*resolve*/)) != null) {
      TypeDeclaration typeDecl = this.scope.referenceContext;
      FieldDeclaration[] fieldDeclarations = typeDecl.fields;
      int max = fieldDeclarations == null ? 0 : fieldDeclarations.length;
      for (int i = 0; i < max; i++) {
        FieldDeclaration fieldDecl = fieldDeclarations[i];
        if (fieldDecl.binding == existingField) {
View Full Code Here

* lazily resolving corresponding annotation nodes, in case of forward references.
* @see org.eclipse.jdt.internal.compiler.lookup.Binding#getAnnotationTagBits()
*/
public long getAnnotationTagBits() {
  if ((this.tagBits & TagBits.AnnotationResolved) == 0 && this.scope != null) {
    TypeDeclaration typeDecl = this.scope.referenceContext;
    boolean old = typeDecl.staticInitializerScope.insideTypeAnnotation;
    try {
      typeDecl.staticInitializerScope.insideTypeAnnotation = true;
      ASTNode.resolveAnnotations(typeDecl.staticInitializerScope, typeDecl.annotations, this);
    } finally {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.TypeDeclaration

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.