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

项目:che    文件:Util.java   
public static IClassFileAttribute getAttribute(
    ICodeAttribute codeAttribute, char[] attributeName) {
  IClassFileAttribute[] attributes = codeAttribute.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    文件:CheckDebugAttributes.java   
private boolean checkClassFile(IClassFileReader classFileReader) {
    IMethodInfo[] methodInfos = classFileReader.getMethodInfos();
    for (int i = 0, max = methodInfos.length; i < max; i++) {
        ICodeAttribute codeAttribute = methodInfos[i].getCodeAttribute();
        if (codeAttribute != null && codeAttribute.getLineNumberAttribute() != null) {
            return true;
        }
    }
    return false;
}
项目:Eclipse-Postfix-Code-Completion    文件:Util.java   
public static IClassFileAttribute getAttribute(ICodeAttribute codeAttribute, char[] attributeName) {
    IClassFileAttribute[] attributes = codeAttribute.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    文件:CheckDebugAttributes.java   
private boolean checkClassFile(IClassFileReader classFileReader) {
    IMethodInfo[] methodInfos = classFileReader.getMethodInfos();
    for (int i = 0, max = methodInfos.length; i < max; i++) {
        ICodeAttribute codeAttribute = methodInfos[i].getCodeAttribute();
        if (codeAttribute != null && codeAttribute.getLineNumberAttribute() != null) {
            return true;
        }
    }
    return false;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:Util.java   
public static IClassFileAttribute getAttribute(ICodeAttribute codeAttribute, char[] attributeName) {
    IClassFileAttribute[] attributes = codeAttribute.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    文件:MethodInfo.java   
/**
 * @see IMethodInfo#getCodeAttribute()
 */
public ICodeAttribute getCodeAttribute() {
    return this.codeAttribute;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:MethodInfo.java   
/**
 * @see IMethodInfo#getCodeAttribute()
 */
public ICodeAttribute getCodeAttribute() {
    return this.codeAttribute;
}