Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, hasErrors, 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.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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