Package com.yworks.yguard.obf
Class TreeItem
- java.lang.Object
-
- com.yworks.yguard.obf.TreeItem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFullInName()Construct and return the full original name of the entry.java.lang.StringgetFullOutName()Construct and return the full obfuscated name of the entry.java.lang.StringgetInName()Return the original name of the entry.intgetModifiers()Return the modifiers.java.lang.StringgetObfName()Return the obfuscated name of the entry.java.lang.StringgetOutName()Return the output name of the entry, obfuscated or original.TreeItemgetParent()Get the parent in the tree.booleanisFixed()Has the entry been fixed already?booleanisFromScript()Is this constrained by a user script line?booleanisFromScriptMap()Is this constrained by a map script line?static booleanisMatch(java.lang.String pattern, java.lang.String string)Do a wildcard String match.static booleanisNRMatch(java.lang.String pattern, java.lang.String string)Do a non-package-recursive wildcard String match.booleanisSynthetic()Is a method or field Synthetic?voidsetFromScript()Signal that this constraint came from a user script line.voidsetFromScriptMap()Signal that this constraint came from a map script line.voidsetOutName(java.lang.String outName)Set the output name of the entry.voidsetParent(TreeItem parent)Set the parent in the tree -- used when stitching in a Cl to replace a PlaceholderCl.
-
-
-
Constructor Detail
-
TreeItem
public TreeItem(TreeItem parent, java.lang.String name)
Ctor.- Parameters:
parent- the parentname- the name
-
-
Method Detail
-
isNRMatch
public static boolean isNRMatch(java.lang.String pattern, java.lang.String string)Do a non-package-recursive wildcard String match.- Parameters:
pattern- the patternstring- the string- Returns:
- the boolean
-
isMatch
public static boolean isMatch(java.lang.String pattern, java.lang.String string)Do a wildcard String match.- Parameters:
pattern- the patternstring- the string- Returns:
- the boolean
-
getModifiers
public int getModifiers()
Return the modifiers.- Returns:
- the modifiers
-
getInName
public java.lang.String getInName()
Return the original name of the entry.- Returns:
- the in name
-
setOutName
public void setOutName(java.lang.String outName)
Set the output name of the entry.- Parameters:
outName- the out name
-
getOutName
public java.lang.String getOutName()
Return the output name of the entry, obfuscated or original.- Returns:
- the out name
-
getObfName
public java.lang.String getObfName()
Return the obfuscated name of the entry.- Returns:
- the obf name
-
setFromScript
public void setFromScript()
Signal that this constraint came from a user script line.
-
setFromScriptMap
public void setFromScriptMap()
Signal that this constraint came from a map script line.
-
isFixed
public boolean isFixed()
Has the entry been fixed already?- Returns:
- the boolean
-
isFromScript
public boolean isFromScript()
Is this constrained by a user script line?- Returns:
- the boolean
-
isFromScriptMap
public boolean isFromScriptMap()
Is this constrained by a map script line?- Returns:
- the boolean
-
isSynthetic
public boolean isSynthetic()
Is a method or field Synthetic?- Returns:
- the boolean
-
setParent
public void setParent(TreeItem parent)
Set the parent in the tree -- used when stitching in a Cl to replace a PlaceholderCl.- Parameters:
parent- the parent
-
getParent
public TreeItem getParent()
Get the parent in the tree.- Returns:
- the parent
-
getFullInName
public java.lang.String getFullInName()
Construct and return the full original name of the entry.- Returns:
- the full in name
-
getFullOutName
public java.lang.String getFullOutName()
Construct and return the full obfuscated name of the entry.- Returns:
- the full out name
-
-