Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

javax.ide.model.java.source.tree
Interface BlockT

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.

See Also:
BlockElementT

Field Summary
 
Fields inherited from interface javax.ide.model.java.source.tree.Tree
EMPTY_ARRAY
 
Method Summary
 java.util.List getBlockElements()
          Gets the list of block elements.
 java.util.Collection getLocalClasses()
          Gets the collection of local classes.
 java.util.Collection getLocalVariables()
          Gets the collection of local variables.
 
Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Method Detail

getBlockElements

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.

Returns:
The array of block elements within this block. Always non-null. Returns a collection of Tree's.

List of BlockElementTs.


getLocalClasses

java.util.Collection getLocalClasses()
Gets the collection of local classes.

Returns:
The array of local classes. Returns a collection of ClassT's.

Collection of ClassTs.


getLocalVariables

java.util.Collection getLocalVariables()
Gets the collection of local variables.

Returns:
The array of local variables. Returns a collection of LocalVariableT's.

List of LocalVariableTs.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.