Methods Summary |
---|
public void | addMethod(MethodDescriptor aMethod)
methods.add(aMethod);
|
public void | addMethodPermission(MethodPermission mp)
mps.add(mp);
|
public void | addMethods(java.util.Collection methods)
this.methods.addAll(methods);
|
public MethodPermission[] | getMethodPermissions()
MethodPermission[] array = new MethodPermission[mps.size()];
mps.copyInto(array);
return array;
|
public MethodDescriptor[] | getMethods()
MethodDescriptor[] array = new MethodDescriptor[methods.size()];
methods.copyInto(array);
return array;
|
public void | print(java.lang.StringBuffer toStringBuffer)
StringBuffer buffer = toStringBuffer;
buffer.append("Method Permission " + (getDescription()==null?"":getDescription()) );
buffer.append("\nFor the following Permissions ");
for (Iterator mpsIterator = mps.iterator();mpsIterator.hasNext();) {
MethodPermission mp = (MethodPermission) mpsIterator.next();
mp.print(buffer);
buffer.append("\n");
}
buffer.append("\nFor the following ").append(methods.size()).append(" methods\n");
for (Iterator methodsIterator = methods.iterator();methodsIterator.hasNext();) {
MethodDescriptor md = (MethodDescriptor) methodsIterator.next();
md.print(buffer);
buffer.append("\n");
}
|