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

E17493-01

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

All Superinterfaces:
Element, SourceElement, SourceHasModifiers, SourceHasType
All Known Subinterfaces:
SourceFieldDeclaration, SourceLocalVariableDeclaration

public interface SourceVariableDeclaration
extends SourceElement, SourceHasModifiers, SourceHasType

The common base interface for a field declaration and a local variable declaration.


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
 SourceTypeReference getSourceType()
          Gets the base source type.
 java.util.List<SourceVariable> getVariables()
          Gets the list of declared variables.
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceHasModifiers
addModifiers, getModifiers, getSourceAnnotations, removeModifiers, setModifiers
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceHasType
setSourceType
 
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

getSourceType

SourceTypeReference getSourceType()
Gets the base source type.

Specified by:
getSourceType in interface SourceHasType
Returns:
The base type of this variable declaration.

getVariables

java.util.List<SourceVariable> getVariables()
Gets the list of declared variables. If this is an enum constant, there can never be more than one variable.

Returns:
Array of variables declared in this field. Returns a collection of SourceVariable's.

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

E17493-01

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