Package com.yworks.yguard.obf
Class PkCl
- java.lang.Object
-
- com.yworks.yguard.obf.TreeItem
-
- com.yworks.yguard.obf.PkCl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddAllClasses(java.util.Vector allClasses)List classes and recursively compose a list of all inner classes.CladdClass(boolean isInnerClass, java.lang.Object[] classInfo)Add a class to the list of owned classes.abstract CladdClass(java.lang.Object[] classInfo)Add a class to the list of owned classes.CladdPlaceholderClass(boolean isInnerClass, java.lang.String name)Add a placeholder class to our list of owned classes, to be replaced later by the full class.abstract CladdPlaceholderClass(java.lang.String name)Add a placeholder class to our list of owned classes, to be replaced later by the full class.voidgenerateNames()Generate unique obfuscated names for this namespace.protected voidgenerateNames(java.util.Hashtable hash)Generate unique obfuscated names for a given namespace.java.util.EnumerationgetAllClassEnum()Get an Enumeration of all classes (outer and inner) in the tree beneath this PkCl.ClgetClass(java.lang.String name)Get a class by name.intgetClassCount()Return number of classes.java.util.EnumerationgetClassEnum()Get an Enumeration of classes directly beneath this PkCl.-
Methods inherited from class com.yworks.yguard.obf.TreeItem
getFullInName, getFullOutName, getInName, getModifiers, getObfName, getOutName, getParent, isFixed, isFromScript, isFromScriptMap, isMatch, isNRMatch, isSynthetic, setFromScript, setFromScriptMap, setOutName, setParent
-
-
-
-
Constructor Detail
-
PkCl
public PkCl(TreeItem parent, java.lang.String name)
Ctor.- Parameters:
parent- the parentname- the name
-
-
Method Detail
-
getClass
public Cl getClass(java.lang.String name)
Get a class by name.- Parameters:
name- the name- Returns:
- the class
-
getClassEnum
public java.util.Enumeration getClassEnum()
Get an Enumeration of classes directly beneath this PkCl.- Returns:
- the class enum
-
getAllClassEnum
public java.util.Enumeration getAllClassEnum()
Get an Enumeration of all classes (outer and inner) in the tree beneath this PkCl.- Returns:
- the all class enum
-
addAllClasses
protected void addAllClasses(java.util.Vector allClasses)
List classes and recursively compose a list of all inner classes.- Parameters:
allClasses- the all classes
-
getClassCount
public int getClassCount()
Return number of classes.- Returns:
- the class count
-
addClass
public abstract Cl addClass(java.lang.Object[] classInfo)
Add a class to the list of owned classes.- Parameters:
classInfo- the class info- Returns:
- the cl
-
addClass
public Cl addClass(boolean isInnerClass, java.lang.Object[] classInfo)
Add a class to the list of owned classes.- Parameters:
isInnerClass- the is inner classclassInfo- the class info- Returns:
- the cl
-
addPlaceholderClass
public abstract Cl addPlaceholderClass(java.lang.String name)
Add a placeholder class to our list of owned classes, to be replaced later by the full class.- Parameters:
name- the name- Returns:
- the cl
-
addPlaceholderClass
public Cl addPlaceholderClass(boolean isInnerClass, java.lang.String name)
Add a placeholder class to our list of owned classes, to be replaced later by the full class.- Parameters:
isInnerClass- the is inner classname- the name- Returns:
- the cl
-
generateNames
public void generateNames()
Generate unique obfuscated names for this namespace.
-
generateNames
protected void generateNames(java.util.Hashtable hash)
Generate unique obfuscated names for a given namespace.- Parameters:
hash- the hash
-
-