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

E17493-02

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

All Superinterfaces:
Element, SourceElement
All Known Subinterfaces:
SourceCatchParameter, SourceEnumConstant, SourceFieldDeclaration, SourceFieldVariable, SourceFormalParameter, SourceLocalVariable, SourceLocalVariableDeclaration, SourceMemberVariable, SourceNewArrayExpression, SourceNewClassExpression, SourceSuperclassClause, SourceTypeArgument, SourceTypeExpression, SourceVariable, SourceVariableDeclaration

public interface SourceHasType
extends SourceElement

A SourceElement that has a type reference.


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 source type.
 void setSourceType(SourceTypeReference type)
          Unlinks the current source type and links the input 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

getSourceType

SourceTypeReference getSourceType()
Gets the source type.

Returns:
The type of this variable. In some cases, the type symbol will be synthetic.

setSourceType

void setSourceType(SourceTypeReference type)
Unlinks the current source type and links the input element.

Throws:
java.lang.IllegalStateException - if the input type is already linked.

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

E17493-02

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