Methods Summary |
---|
public static java.lang.String | decodeAccessFlag(int access)
StringBuilder result = new StringBuilder("");
if ((access & ACC_PRIVATE) == ACC_PRIVATE) {
result.append("private "); // NOI18N
} else if ((access & ACC_PROTECTED) == ACC_PROTECTED) {
result.append("protected "); // NOI18N
} else if ((access & ACC_PUBLIC) == ACC_PUBLIC) {
result.append("public "); // NOI18N
}
if ((access & ACC_ABSTRACT) == ACC_ABSTRACT) {
result.append("abstract "); // NOI18N
} else if ((access & ACC_FINAL) == ACC_FINAL) {
result.append("final "); // NOI18N
}
if ((access & ACC_INTERFACE) == ACC_INTERFACE) {
result.append("interface "); // NOI18N
} else {
result.append("class "); // NOI18N
}
return result.toString();
|
public java.util.Collection | getAllReferencedClassNames()
throw new UnsupportedOperationException();
|
public java.util.Collection | getAllReferencedClassNamesInInternalForm()
throw new UnsupportedOperationException();
|
public java.lang.String | getInternalName()
return internalName;
|
public java.lang.String | getInternalNameOfSuperClass()
return internalNameOfSuperClass;
|
public java.lang.String[] | getInternalNamesOfInterfaces()
return internalNamesOfInterfaces;
|
public Method | getMethod(MethodRef methodRef)
for (Method m : methods) {
if (m.getName().equals(methodRef.getName()) &&
m.getDescriptor().equals(methodRef.getDescriptor())) {
return m;
}
}
return null;
|
public java.util.Collection | getMethods()
return methods;
|
public java.lang.String | getName()
return externalName;
|
public java.lang.String | getNameOfSuperClass()
return Util.convertToExternalClassName(internalNameOfSuperClass);
|
public java.lang.String[] | getNamesOfInterfaces()
String[] result = new String[internalNamesOfInterfaces.length];
for(int i = 0; i< internalNamesOfInterfaces.length; ++i){
result[i] = Util.convertToExternalClassName(internalNamesOfInterfaces[i]);
}
return result;
|
public java.lang.String | getPackageName()
return packageName;
|
public boolean | isInterface()
return (access & ACC_INTERFACE) == ACC_INTERFACE;
|
public java.lang.String | toString()
StringBuilder sb = new StringBuilder(decodeAccessFlag(access)+ externalName);
if(internalNameOfSuperClass!=null) sb.append(" extends "+getNameOfSuperClass()); // NOI18N
if(internalNamesOfInterfaces.length>0){
sb.append(" implements "); // NOI18N
for(String s : getNamesOfInterfaces()) sb.append(s);
}
sb.append("{\n"); // NOI18N
for(Method m : methods){
sb.append(m).append("\n"); // NOI18N
}
sb.append("}"); // NOI18N
return sb.toString();
|