Java 类org.eclipse.jdt.core.util.IFieldInfo 实例源码

项目:eclipse.jdt.ls    文件:SerialVersionHashOperation.java   
private static IFieldInfo[] getSortedFields(IClassFileReader cfReader) {
    IFieldInfo[] allFields = cfReader.getFieldInfos();
    Arrays.sort(allFields, new Comparator<IFieldInfo>() {
        @Override
        public int compare(IFieldInfo o1, IFieldInfo o2) {
            return CharOperation.compareTo(o1.getName(), o2.getName());
        }
    });
    return allFields;
}
项目:che    文件:Util.java   
public static IClassFileAttribute getAttribute(IFieldInfo fieldInfo, char[] attributeName) {
  IClassFileAttribute[] attributes = fieldInfo.getAttributes();
  for (int i = 0, max = attributes.length; i < max; i++) {
    if (CharOperation.equals(attributes[i].getAttributeName(), attributeName)) {
      return attributes[i];
    }
  }
  return null;
}
项目:Eclipse-Postfix-Code-Completion    文件:SerialVersionHashOperation.java   
private static IFieldInfo[] getSortedFields(IClassFileReader cfReader) {
    IFieldInfo[] allFields= cfReader.getFieldInfos();
    Arrays.sort(allFields, new Comparator<IFieldInfo>() {
        public int compare(IFieldInfo o1, IFieldInfo o2) {
            return CharOperation.compareTo(o1.getName(), o2.getName());
        }
    });
    return allFields;
}
项目:Eclipse-Postfix-Code-Completion    文件:Util.java   
public static IClassFileAttribute getAttribute(IFieldInfo fieldInfo, char[] attributeName) {
    IClassFileAttribute[] attributes = fieldInfo.getAttributes();
    for (int i = 0, max = attributes.length; i < max; i++) {
        if (CharOperation.equals(attributes[i].getAttributeName(), attributeName)) {
            return attributes[i];
        }
    }
    return null;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:SerialVersionHashOperation.java   
private static IFieldInfo[] getSortedFields(IClassFileReader cfReader) {
    IFieldInfo[] allFields= cfReader.getFieldInfos();
    Arrays.sort(allFields, new Comparator<IFieldInfo>() {
        public int compare(IFieldInfo o1, IFieldInfo o2) {
            return CharOperation.compareTo(o1.getName(), o2.getName());
        }
    });
    return allFields;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:Util.java   
public static IClassFileAttribute getAttribute(IFieldInfo fieldInfo, char[] attributeName) {
    IClassFileAttribute[] attributes = fieldInfo.getAttributes();
    for (int i = 0, max = attributes.length; i < max; i++) {
        if (CharOperation.equals(attributes[i].getAttributeName(), attributeName)) {
            return attributes[i];
        }
    }
    return null;
}
项目:Eclipse-Postfix-Code-Completion    文件:ClassFileReader.java   
/**
 * @see IClassFileReader#getFieldInfos()
 */
public IFieldInfo[] getFieldInfos() {
    return this.fields;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:ClassFileReader.java   
/**
 * @see IClassFileReader#getFieldInfos()
 */
public IFieldInfo[] getFieldInfos() {
    return this.fields;
}