Skip navigation links 
 
javax.ide.model.java.source.tree
Interface NewClassExpressionT
- All Superinterfaces:
 
- DereferenceExpressionT, ExpressionT, InvokeExpressionT, OperatorExpressionT, Tree
 
- 
public interface NewClassExpressionT
 
- extends InvokeExpressionT
 
An expression creating a new instance of a class. Class creators come two flavors: normal and anonymous class.
 
 
  
 
 
  
 
 
 
 
 
| 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 | 
 
 
getAnonymousClass
ClassT getAnonymousClass()
- 
- Returns:
 
- The special ClassT object representing the anonymous class body. Null if no class body was declared.
 
 
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. 
 
Skip navigation links 
 
Copyright © 1997, 2011, Oracle. All rights reserved.