- All Superinterfaces:
- Tree
- public interface BlockT
- extends Tree
A code block. Blocks may be children of methods declarations,
constructor declarations, class initializers, and statements. A
block may contain any child that extends BlockElementT, in
particular: ClassT, LocalVariableDeclT, StatementT,
SwitchLabelT.
| Fields inherited from interface javax.ide.model.java.source.tree.Tree |
EMPTY_ARRAY |
| Methods inherited from interface javax.ide.model.java.source.tree.Tree |
accept, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
getBlockElements
public java.util.List getBlockElements()
- Gets the list of block elements. The only difference between
getBlockElements() and getChildren() is the type. Notice that
getBlockElements() returns a List whereas getChildren
returns a List.
getLocalClasses
public java.util.Collection getLocalClasses()
- Gets the collection of local classes.
getLocalVariables
public java.util.Collection getLocalVariables()
- Gets the collection of local variables.