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

E13403-05

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

All Superinterfaces:
Element, SourceElement
All Known Subinterfaces:
SourceEnumConstant, SourceFieldDeclaration, SourceFieldVariable, SourceFormalParameter, SourceLocalVariable, SourceLocalVariableDeclaration, SourceMemberVariable, SourceNewArrayExpression, SourceNewClassExpression, SourceSuperclassClause, 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, 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

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 Reference
11g Release 1 (11.1.1.4.0)

E13403-05

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