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 SourceBlock

All Superinterfaces:
Element, SourceElement

public interface SourceBlock
extends SourceElement

The SourceCodeBlock represents code blocks for methods and statements. Each block is comprised of code elements: local variable declarations, local class declarations, statements, and switch labels.


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
 java.util.List<SourceElement> getCodeElements()
          Gets the list of code elements.
 java.util.List<SourceClass> getLocalClasses()
          Gets the collection of local classes.
 java.util.Collection<SourceLocalVariable> getLocalVariables()
          Gets the collection of local variables.

 

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

getCodeElements

java.util.List<SourceElement> getCodeElements()
Gets the list of code elements.

There are three possible code elements: SourceClass, SourceField, and SourceStatement. This will return the array in order.

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

getLocalClasses

java.util.List<SourceClass> getLocalClasses()
Gets the collection of local classes.
Returns:
The array of local classes. Returns a collection of SourceClass's.

getLocalVariables

java.util.Collection<SourceLocalVariable> getLocalVariables()
Gets the collection of local variables.
Returns:
The array of local variables. Returns a collection of SourceLocalVariable's.

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.