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

E13403-03

oracle.javatools.parser.java.v2.model
Interface SourceHasBlock

All Superinterfaces:
Element, SourceElement
All Known Subinterfaces:
SourceBlockStatement, SourceClassInitializer, SourceMethod

public interface SourceHasBlock
extends SourceElement

A source element that has a block. For example, class initializers and method/constructor declarations may have blocks. Control statements may also have blocks.


Field Summary
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, EMPTY_ARRAY, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
Method Summary
 SourceBlock getBlock()
          Gets the declared code block, null if none.
 void setBlock(SourceBlock block)
          Attempts to set the code block associated with this element.
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
addSelf, addSelf, addSelfAfter, addSelfBefore, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 

Method Detail

getBlock

SourceBlock getBlock()
Gets the declared code block, null if none.

Returns:
The code block associated with this element. Null if none.

setBlock

void setBlock(SourceBlock block)
Attempts to set the code block associated with this element.


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

E13403-03

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