public interface

ICodeNode

implements IActionableNode
com.pnfsoftware.jeb.core.output.tree.ICodeNode

Class Overview

A special interface for nodes holding code items.

This interface has no equivalent for text or table documents.

See Also

Summary

Constants
int IS_ARTIFICIAL special code item flag (means the node hold an artificial object)
int IS_CLASS special code item flag (means the node hold a class object)
int IS_FIELD special code item flag (means the node hold a field object)
int IS_INTERNAL special code item flag (means the node hold an internal object)
int IS_METHOD special code item flag (means the node hold a method object)
int IS_PACKAGE special code item flag (means the node hold a package object)
int IS_TYPE special code item flag (means the node hold a type object)
[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.output.IActionableItem
Public Methods
abstract ICodeNode findNodeByObject(ICodeItem target)
Find the first child node that holds the provided code item.
abstract List<? extends ICodeNode> getChildren()
Get the children of this node.
abstract List<? extends ICodeNode> getChildren(int includedFlags, int excludedFlags)
Get the children nodes that meet the provided criteria.
abstract ICodeItem getObject()
Get the underlying code object help by the node.
abstract ICodeNode getParent()
Get the parent code node.
abstract boolean meetsConditions(int included, int excluded)
Verify if this node meets the provided criteria.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.output.IActionableItem
From interface com.pnfsoftware.jeb.core.output.IVisualItem
From interface com.pnfsoftware.jeb.core.output.tree.INode
From interface com.pnfsoftware.jeb.core.output.tree.IVisualNode

Constants

public static final int IS_ARTIFICIAL

special code item flag (means the node hold an artificial object)

Constant Value: 16 (0x00000010)

public static final int IS_CLASS

special code item flag (means the node hold a class object)

Constant Value: 131072 (0x00020000)

public static final int IS_FIELD

special code item flag (means the node hold a field object)

Constant Value: 262144 (0x00040000)

public static final int IS_INTERNAL

special code item flag (means the node hold an internal object)

Constant Value: 256 (0x00000100)

public static final int IS_METHOD

special code item flag (means the node hold a method object)

Constant Value: 524288 (0x00080000)

public static final int IS_PACKAGE

special code item flag (means the node hold a package object)

Constant Value: 32768 (0x00008000)

public static final int IS_TYPE

special code item flag (means the node hold a type object)

Constant Value: 65536 (0x00010000)

Public Methods

public abstract ICodeNode findNodeByObject (ICodeItem target)

Find the first child node that holds the provided code item.

Parameters
target the target code item
Returns
  • reference to the first child node that wraps the target code item, null if none

public abstract List<? extends ICodeNode> getChildren ()

Get the children of this node.

Returns
  • a list of children nodes, possibly empty

public abstract List<? extends ICodeNode> getChildren (int includedFlags, int excludedFlags)

Get the children nodes that meet the provided criteria. Refer to the IS_xxx possible flags returned by getItemFlags().

Parameters
includedFlags if non-0, candidates children MUST have the flags set
excludedFlags if non-0, candidates children MUST NOT have the flags set
Returns
  • the list of children

public abstract ICodeItem getObject ()

Get the underlying code object help by the node.

Returns
  • the code object

public abstract ICodeNode getParent ()

Get the parent code node.

Returns
  • the parent node

public abstract boolean meetsConditions (int included, int excluded)

Verify if this node meets the provided criteria. Refer to the IS_xxx possible flags returned by getItemFlags().

Parameters
included these flags MUST be set
excluded these flags MUST NOT be set
Returns
  • true iff the node meets the required conditions