Package com.yworks.yguard.obf
Class YGuardRule
- java.lang.Object
-
- com.yworks.yguard.obf.YGuardRule
-
public class YGuardRule extends java.lang.ObjectRepresentation of RGS script files entry.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringdescriptorThe Descriptor.static intFRIENDLYThe constant FRIENDLY.static intLEVEL_FRIENDLYThe constant LEVEL_FRIENDLY.static intLEVEL_NONEThe constant LEVEL_NONE.static intLEVEL_PRIVATEThe constant LEVEL_PRIVATE.static intLEVEL_PROTECTEDThe constant LEVEL_PROTECTED.static intLEVEL_PUBLICThe constant LEVEL_PUBLIC.LineNumberTableMapperlineNumberTableMapperThe Line number table mapper.java.lang.StringnameThe Name.java.lang.StringobfNameThe Obf name.static intPRIVATEThe constant PRIVATE.static intPROTECTEDThe constant PROTECTED.static intPUBLICThe constant PUBLIC.intretainClassesThe Retain classes.intretainFieldsThe Retain fields.intretainMethodsThe Retain methods.inttypeThe Type.static intTYPE_ATTRThe constant TYPE_ATTR.static intTYPE_ATTR2The constant TYPE_ATTR2.static intTYPE_CLASSThe constant TYPE_CLASS.static intTYPE_CLASS_MAPThe constant TYPE_CLASS_MAP.static intTYPE_FIELDThe constant TYPE_FIELD.static intTYPE_FIELD_MAPThe constant TYPE_FIELD_MAP.static intTYPE_LINE_NUMBER_MAPPERThe constant TYPE_LINE_NUMBER_MAPPER.static intTYPE_METHODThe constant TYPE_METHOD.static intTYPE_METHOD_MAPThe constant TYPE_METHOD_MAP.static intTYPE_PACKAGEThe constant TYPE_PACKAGE.static intTYPE_PACKAGE_MAPThe constant TYPE_PACKAGE_MAP.static intTYPE_SOURCE_ATTRIBUTE_MAPThe constant TYPE_SOURCE_ATTRIBUTE_MAP.
-
Constructor Summary
Constructors Constructor Description YGuardRule(int type, java.lang.String name)Instantiates a new Y guard rule.YGuardRule(int type, java.lang.String name, java.lang.String descriptor)Instantiates a new Y guard rule.YGuardRule(java.lang.String className, LineNumberTableMapper lineNumberTableMapper)Instantiates a new Y guard rule.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogProperties(java.io.PrintWriter pw)Log properties.static java.lang.StringmethodToString(int modifier)Method to string string.java.lang.StringtoString()static java.lang.StringtypeToString(int type)Type to string string.
-
-
-
Field Detail
-
PUBLIC
public static final int PUBLIC
The constant PUBLIC.- See Also:
- Constant Field Values
-
PROTECTED
public static final int PROTECTED
The constant PROTECTED.- See Also:
- Constant Field Values
-
FRIENDLY
public static final int FRIENDLY
The constant FRIENDLY.- See Also:
- Constant Field Values
-
PRIVATE
public static final int PRIVATE
The constant PRIVATE.- See Also:
- Constant Field Values
-
LEVEL_NONE
public static final int LEVEL_NONE
The constant LEVEL_NONE.- See Also:
- Constant Field Values
-
LEVEL_PUBLIC
public static final int LEVEL_PUBLIC
The constant LEVEL_PUBLIC.- See Also:
- Constant Field Values
-
LEVEL_PROTECTED
public static final int LEVEL_PROTECTED
The constant LEVEL_PROTECTED.- See Also:
- Constant Field Values
-
LEVEL_FRIENDLY
public static final int LEVEL_FRIENDLY
The constant LEVEL_FRIENDLY.- See Also:
- Constant Field Values
-
LEVEL_PRIVATE
public static final int LEVEL_PRIVATE
The constant LEVEL_PRIVATE.- See Also:
- Constant Field Values
-
TYPE_ATTR
public static final int TYPE_ATTR
The constant TYPE_ATTR.- See Also:
- Constant Field Values
-
TYPE_CLASS
public static final int TYPE_CLASS
The constant TYPE_CLASS.- See Also:
- Constant Field Values
-
TYPE_FIELD
public static final int TYPE_FIELD
The constant TYPE_FIELD.- See Also:
- Constant Field Values
-
TYPE_METHOD
public static final int TYPE_METHOD
The constant TYPE_METHOD.- See Also:
- Constant Field Values
-
TYPE_PACKAGE_MAP
public static final int TYPE_PACKAGE_MAP
The constant TYPE_PACKAGE_MAP.- See Also:
- Constant Field Values
-
TYPE_CLASS_MAP
public static final int TYPE_CLASS_MAP
The constant TYPE_CLASS_MAP.- See Also:
- Constant Field Values
-
TYPE_FIELD_MAP
public static final int TYPE_FIELD_MAP
The constant TYPE_FIELD_MAP.- See Also:
- Constant Field Values
-
TYPE_METHOD_MAP
public static final int TYPE_METHOD_MAP
The constant TYPE_METHOD_MAP.- See Also:
- Constant Field Values
-
TYPE_SOURCE_ATTRIBUTE_MAP
public static final int TYPE_SOURCE_ATTRIBUTE_MAP
The constant TYPE_SOURCE_ATTRIBUTE_MAP.- See Also:
- Constant Field Values
-
TYPE_LINE_NUMBER_MAPPER
public static final int TYPE_LINE_NUMBER_MAPPER
The constant TYPE_LINE_NUMBER_MAPPER.- See Also:
- Constant Field Values
-
TYPE_ATTR2
public static final int TYPE_ATTR2
The constant TYPE_ATTR2.- See Also:
- Constant Field Values
-
TYPE_PACKAGE
public static final int TYPE_PACKAGE
The constant TYPE_PACKAGE.- See Also:
- Constant Field Values
-
type
public int type
The Type.
-
name
public java.lang.String name
The Name.
-
descriptor
public java.lang.String descriptor
The Descriptor.
-
obfName
public java.lang.String obfName
The Obf name.
-
lineNumberTableMapper
public LineNumberTableMapper lineNumberTableMapper
The Line number table mapper.
-
retainFields
public int retainFields
The Retain fields.
-
retainMethods
public int retainMethods
The Retain methods.
-
retainClasses
public int retainClasses
The Retain classes.
-
-
Constructor Detail
-
YGuardRule
public YGuardRule(int type, java.lang.String name)Instantiates a new Y guard rule.- Parameters:
type- the typename- the name
-
YGuardRule
public YGuardRule(int type, java.lang.String name, java.lang.String descriptor)Instantiates a new Y guard rule.- Parameters:
type- the typename- the namedescriptor- the descriptor
-
YGuardRule
public YGuardRule(java.lang.String className, LineNumberTableMapper lineNumberTableMapper)Instantiates a new Y guard rule.- Parameters:
className- the class namelineNumberTableMapper- the line number table mapper
-
-
Method Detail
-
logProperties
public void logProperties(java.io.PrintWriter pw)
Log properties.- Parameters:
pw- the pw
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
typeToString
public static java.lang.String typeToString(int type)
Type to string string.- Parameters:
type- the type- Returns:
- the string
-
methodToString
public static java.lang.String methodToString(int modifier)
Method to string string.- Parameters:
modifier- the modifier- Returns:
- the string
-
-