Package org.eclipse.jdt.internal.compiler.classfmt

Examples of org.eclipse.jdt.internal.compiler.classfmt.FieldInfo


        addDefaultConstructorDeclaration(className, packageName, modifiers, extraFlags);
      }
      FieldInfo[] fields = (FieldInfo[]) reader.getFields();
      if (fields != null) {
        for (int i = 0, max = fields.length; i < max; i++) {
          FieldInfo field = fields[i];
          char[] fieldName = field.getName();
          char[] fieldType = decodeFieldType(replace('/', '.', field.getTypeName()));
          addFieldDeclaration(fieldType, fieldName);
          // look for references in field annotations
          annotations = field.getAnnotations();
          if (annotations != null) {
            for (int a=0, length=annotations.length; a<length; a++) {
              IBinaryAnnotation annotation = annotations[a];
              addBinaryAnnotation(annotation);
            }
          }
          tagBits = field.getTagBits() & TagBits.AllStandardAnnotationsMask;
          if (tagBits != 0) {
            addBinaryStandardAnnotations(tagBits);
          }
        }
      }
View Full Code Here


  // Look for references in fields annotations
  FieldInfo[] fields = (FieldInfo[]) binaryType.getFields();
  if (fields != null) {
    for (int i = 0, max = fields.length; i < max; i++) {
      FieldInfo field = fields[i];
      if (checkAnnotations(typeReferencePattern, field.getAnnotations(), field.getTagBits())) {
          IField fieldHandle = classFileBinaryType.getField(new String(field.getName()));
          TypeReferenceMatch match = new TypeReferenceMatch(fieldHandle, SearchMatch.A_ACCURATE, -1, 0, false, locator.getParticipant(), locator.currentPossibleMatch.resource);
          // TODO 3.4 M7 (frederic) - bug 209996: see how create the annotation handle from the binary and put it in the local element
          match.setLocalElement(null);
          locator.report(match);
      }
View Full Code Here

        addDefaultConstructorDeclaration(className, packageName, modifiers, extraFlags);
      }
      FieldInfo[] fields = (FieldInfo[]) reader.getFields();
      if (fields != null) {
        for (int i = 0, max = fields.length; i < max; i++) {
          FieldInfo field = fields[i];
          char[] fieldName = field.getName();
          char[] fieldType = decodeFieldType(replace('/', '.', field.getTypeName()));
          addFieldDeclaration(fieldType, fieldName);
          // look for references in field annotations
          annotations = field.getAnnotations();
          if (annotations != null) {
            for (int a=0, length=annotations.length; a<length; a++) {
              IBinaryAnnotation annotation = annotations[a];
              addBinaryAnnotation(annotation);
            }
          }
          tagBits = field.getTagBits() & TagBits.AllStandardAnnotationsMask;
          if (tagBits != 0) {
            addBinaryStandardAnnotations(tagBits);
          }
        }
      }
View Full Code Here

  // Look for references in fields annotations
  FieldInfo[] fields = (FieldInfo[]) binaryType.getFields();
  if (fields != null) {
    for (int i = 0, max = fields.length; i < max; i++) {
      FieldInfo field = fields[i];
      if (checkAnnotations(typeReferencePattern, field.getAnnotations(), field.getTagBits())) {
          IField fieldHandle = classFileBinaryType.getField(new String(field.getName()));
          TypeReferenceMatch match = new TypeReferenceMatch(fieldHandle, SearchMatch.A_ACCURATE, -1, 0, false, locator.getParticipant(), locator.currentPossibleMatch.resource);
          // TODO 3.4 M7 (frederic) - bug 209996: see how create the annotation handle from the binary and put it in the local element
          match.setLocalElement(null);
          locator.report(match);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.classfmt.FieldInfo

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.