javax.ide.model.java.source.tree
Interface TypeExpressionT
- All Superinterfaces:
- ExpressionT, Tree
public interface TypeExpressionT
- extends ExpressionT
An expression wrapping a type reference. The following operators
all have type operands (which are type expressions): instanceof,
typecast, class literal, and qualified this literal.
Type expressions have no operands.
Methods inherited from interface javax.ide.model.java.source.tree.Tree |
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
getType
TypeReferenceT getType()
- Gets the type reference for this element.
- Returns:
- This element's type reference.
setType
void setType(TypeReferenceT type)
- Unlinks the current source type and links the input element.
- Parameters:
type
- The new type reference.
- Throws:
java.lang.IllegalStateException
- if the input type is already linked.
Copyright © 1997, 2011, Oracle. All rights reserved.