Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

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

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.


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, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Method Detail

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.