java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.output.tree.CodeNodeUtil |
Convenience methods to filter ICodeNode
s.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | IS_ARTIFICIAL | The code item is artificial | |||||||||
int | IS_CLASS | The code item implements ICodeClass |
|||||||||
int | IS_FIELD | The code item implements ICodeField |
|||||||||
int | IS_INTERNAL | The code item is internal | |||||||||
int | IS_METHOD | The code item implements ICodeMethod |
|||||||||
int | IS_PACKAGE | The code item implements ICodePackage |
|||||||||
int | IS_TYPE | The code item implements ICodeType |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CodeNodeUtil() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static boolean | cannotBe(ICodeNode node, int flags) | ||||||||||
static List<ICodeNode> |
getChildren(ICodeNode node, int included, int excluded)
Get the children nodes that meet the provided criteria.
| ||||||||||
static String |
getPackageNameFromHierarchy(ICodeNode node)
Get full package name from hierarchy, e.g.
| ||||||||||
static boolean | hasChildren(ICodeNode node, int included, int excluded) | ||||||||||
static boolean |
meetsConditions(ICodeNode node, int included, int excluded)
Verify if this node meets the provided criteria.
| ||||||||||
static boolean | mustBe(ICodeNode node, int flags) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The code item is artificial
The code item implements ICodeClass
The code item implements ICodeField
The code item is internal
The code item implements ICodeMethod
The code item implements ICodePackage
The code item implements ICodeType
Get the children nodes that meet the provided criteria. Refer to the IS_xxx
possible flags returned by #getItemFlags().
node | parent code node |
---|---|
included | if non-0, candidates children MUST have the flags set |
excluded | if non-0, candidates children MUST NOT have the flags set |
Get full package name from hierarchy, e.g. package 'bar' located in packages std->foo is named 'std::foo::bar'.
Verify if this node meets the provided criteria. Refer to the IS_xxx
possible
flags returned by #getItemFlags().
node | node to be tested |
---|---|
included | these flags MUST be set |
excluded | these flags MUST NOT be set |