| java.lang.Object net.sf.javaguard.ScriptEntry
ScriptEntry | public class ScriptEntry (Code) | | Representation of a script file entry.
author: Thorsten Heit |
Field Summary | |
final public static int | FIELD The int value representing the public modifier. | final public static int | METHOD The int value representing the public modifier. | final public static int | PRIVATE The int value representing the public modifier. | final public static int | PROTECTED The int value representing the public modifier. | final public static int | PUBLIC The int value representing the public modifier. |
Constructor Summary | |
public | ScriptEntry(int type, String name) Creates a new entry that only consists of a type and a name. | public | ScriptEntry(int type, String name, String descriptor) Creates a new entry that has a type, a name and an additional descriptor. | public | ScriptEntry(int type, String name, String descriptor, String mappedName) Creates a new entry that has a type, a name, an additional descriptor and
an additional info string. | public | ScriptEntry(int type, String name, String descriptor, String mappedName, int attrs) Creates a new entry that has a type, a name, an additional descriptor, an
optional mapped name and additional attributes. | public | ScriptEntry(int type, String name, String descriptor, String mappedName, int attrs, String info) Creates a new entry that has a type, a name, an additional descriptor, an
optional mapped name and additional attributes. |
Method Summary | |
public boolean | canRetainFields() Returns whether the entry wants its fields to be retained. | public boolean | canRetainMethods() Returns whether the entry wants its methods to be retained. | public boolean | canRetainProtected() Returns whether the entry wants its protected elements to be retained. | public boolean | canRetainPublic() Returns whether the entry wants its public elements to be retained. | public int | getAttrs() Getter for property attrs. | public String | getDescriptor() Returns the descriptor property of the entry. | public String | getInfo() Returns the additional info string assigned to the entry. | public String | getMappedName() Returns the mapped name of the current entry. | public String | getName() Returns the name property of the entry. | public int | getType() Returns the type of the current entry. | public void | setAttrs(int attrs) Setter for property attrs. | public void | setDescriptor(String descriptor) Sets the descriptor property of the entry. | public void | setInfo(String info) Sets an additional info string for the entry. | public void | setMappedName(String name) Sets the mapped name for the current entry. | public void | setName(String aName) Sets the name property of the entry. | public void | setRetainFields(boolean canRetain) Sets whether the entry wants its fields to be retained. | public void | setRetainMethods(boolean canRetain) Sets whether the entry wants its methods to be retained. | public void | setRetainProtected(boolean canRetain) Sets whether the entry wants its protected elements to be retained. | public void | setRetainPublic(boolean canRetain) Sets whether the entry wants its public elements to be retained. | public void | setType(int aType) Sets the type of the entry. |
FIELD | final public static int FIELD(Code) | | The int value representing the public modifier.
|
METHOD | final public static int METHOD(Code) | | The int value representing the public modifier.
|
PRIVATE | final public static int PRIVATE(Code) | | The int value representing the public modifier.
|
PROTECTED | final public static int PROTECTED(Code) | | The int value representing the public modifier.
|
PUBLIC | final public static int PUBLIC(Code) | | The int value representing the public modifier.
|
ScriptEntry | public ScriptEntry(int type, String name)(Code) | | Creates a new entry that only consists of a type and a name.
Parameters: type - the entry type Parameters: name - the name of the entry; may not be null |
ScriptEntry | public ScriptEntry(int type, String name, String descriptor)(Code) | | Creates a new entry that has a type, a name and an additional descriptor.
Parameters: type - the entry type Parameters: name - the name of the entry; may not be null Parameters: descriptor - a descriptor for the entry name |
ScriptEntry | public ScriptEntry(int type, String name, String descriptor, String mappedName)(Code) | | Creates a new entry that has a type, a name, an additional descriptor and
an additional info string.
Parameters: type - the entry type Parameters: name - the name of the entry; may not be null Parameters: descriptor - a descriptor for the entry name Parameters: mappedName - the mapped name |
ScriptEntry | public ScriptEntry(int type, String name, String descriptor, String mappedName, int attrs)(Code) | | Creates a new entry that has a type, a name, an additional descriptor, an
optional mapped name and additional attributes.
Parameters: type - the entry type Parameters: name - the name of the entry; may not be null Parameters: descriptor - a descriptor for the entry name Parameters: mappedName - the mapped name Parameters: attrs - additional attributes of the entry |
ScriptEntry | public ScriptEntry(int type, String name, String descriptor, String mappedName, int attrs, String info)(Code) | | Creates a new entry that has a type, a name, an additional descriptor, an
optional mapped name and additional attributes.
Parameters: type - the entry type Parameters: name - the name of the entry; may not be null Parameters: descriptor - a descriptor for the entry name Parameters: mappedName - the mapped name Parameters: attrs - additional attributes of the entry Parameters: info - an additiona info string for the entry |
canRetainFields | public boolean canRetainFields()(Code) | | Returns whether the entry wants its fields to be retained.
true if the fields are retained; false else See Also: ScriptEntry.setRetainFields |
canRetainMethods | public boolean canRetainMethods()(Code) | | Returns whether the entry wants its methods to be retained.
true if the methods are retained; false else See Also: ScriptEntry.setRetainMethods |
canRetainProtected | public boolean canRetainProtected()(Code) | | Returns whether the entry wants its protected elements to be retained.
true if the protected elements are retained; false else See Also: ScriptEntry.setRetainProtected |
canRetainPublic | public boolean canRetainPublic()(Code) | | Returns whether the entry wants its public elements to be retained.
true if the public elements are retained; false else See Also: ScriptEntry.setRetainPublic |
getAttrs | public int getAttrs()(Code) | | Getter for property attrs.
Value of property attrs. |
setAttrs | public void setAttrs(int attrs)(Code) | | Setter for property attrs.
Parameters: attrs - New value of property attrs. |
setDescriptor | public void setDescriptor(String descriptor)(Code) | | Sets the descriptor property of the entry.
Parameters: descriptor - New value of property descriptor. See Also: ScriptEntry.getDescriptor |
setInfo | public void setInfo(String info)(Code) | | Sets an additional info string for the entry.
Parameters: info - additional info string; may be null See Also: ScriptEntry.getInfo |
setMappedName | public void setMappedName(String name)(Code) | | Sets the mapped name for the current entry.
Parameters: name - a string that contains the mapped name See Also: ScriptEntry.getMappedName |
setName | public void setName(String aName)(Code) | | Sets the name property of the entry.
Parameters: name - New value of property name. See Also: ScriptEntry.getName |
setRetainFields | public void setRetainFields(boolean canRetain)(Code) | | Sets whether the entry wants its fields to be retained.
Parameters: canRetain - true if the fields are retained; false else See Also: ScriptEntry.canRetainFields |
setRetainMethods | public void setRetainMethods(boolean canRetain)(Code) | | Sets whether the entry wants its methods to be retained.
Parameters: canRetain - true if the methods are retained; false else See Also: ScriptEntry.canRetainMethods |
setRetainProtected | public void setRetainProtected(boolean canRetain)(Code) | | Sets whether the entry wants its protected elements to be retained.
Parameters: canRetain - true if the protected elements are retained; false else See Also: ScriptEntry.canRetainProtected |
setRetainPublic | public void setRetainPublic(boolean canRetain)(Code) | | Sets whether the entry wants its public elements to be retained.
Parameters: canRetain - true if the public elements are retained; false else See Also: ScriptEntry.canRetainPublic |
setType | public void setType(int aType)(Code) | | Sets the type of the entry.
Parameters: aType - the type of the entry See Also: ScriptEntry.getType |
|
|