class TreeNodeBuildingNodeOperation
extends Object
implements IPrimaryClassNodeOperation
This Node Operation builds up a root tree node for the viewer.
| Type | Name and description |
|---|---|
ScriptToTreeNodeAdapter |
adapterAdapter used to create child nodes. |
Object |
nodeMakerFactory used to create tree nodes. |
Object |
rootRoot node for the generated tree. |
Object |
showClosureClassesWhether generated closure classes should be included. |
Object |
showScriptClassWhether the generated script class should be included. |
Object |
showScriptFreeFormWhether free-form script statements should be included. |
Object |
sourceCollectedTracks whether free-form source nodes were already collected. |
| Constructor and description |
|---|
TreeNodeBuildingNodeOperation(ScriptToTreeNodeAdapter adapter, Object showScriptFreeForm, Object showScriptClass)Creates an operation with closure class nodes hidden. |
TreeNodeBuildingNodeOperation(ScriptToTreeNodeAdapter adapter, Object showScriptFreeForm, Object showScriptClass, Object showClosureClasses)Creates an operation for building the AST tree. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
call(SourceUnit source, GeneratorContext context, ClassNode classNode)Adds the current class node and optional script statements to the tree. |
|
protected void |
makeClosureClassTreeNodes(ClassNode classNode)Adds generated closure and lambda classes for the supplied outer class. |
Adapter used to create child nodes.
Factory used to create tree nodes.
Root node for the generated tree.
Whether generated closure classes should be included.
Whether the generated script class should be included.
Whether free-form script statements should be included.
Tracks whether free-form source nodes were already collected.
Creates an operation with closure class nodes hidden.
adapter - adapter used to create tree nodesshowScriptFreeForm - whether free-form script statements should be shownshowScriptClass - whether the generated script class should be shownCreates an operation for building the AST tree.
adapter - adapter used to create tree nodesshowScriptFreeForm - whether free-form script statements should be shownshowScriptClass - whether the generated script class should be shownshowClosureClasses - whether generated closure classes should be shownAdds the current class node and optional script statements to the tree.
Adds generated closure and lambda classes for the supplied outer class.
classNode - outer class being inspectedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.