Skip navigation links

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

E17493-04


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.


Nested Class Summary

 

Nested classes/interfaces inherited from interface javax.ide.model.java.source.tree.ExpressionT
ExpressionT.ExpressionKind

 

Field Summary

 

Fields inherited from interface javax.ide.model.java.source.tree.ExpressionT
EMPTY_ARRAY

 

Method Summary
 ClassT getAnonymousClass()
           
 TypeReferenceT getType()
          Gets the type reference for this element.
 void setType(TypeReferenceT type)
          Unlinks the current source type and links the input element.

 

Methods inherited from interface javax.ide.model.java.source.tree.InvokeExpressionT
getArgumentAt, getArgumentCount, getArgumentList

 

Methods inherited from interface javax.ide.model.java.source.tree.DereferenceExpressionT
getLhsOperand, setLhsOperand

 

Methods inherited from interface javax.ide.model.java.source.tree.ExpressionT
getExpressionKind, getFirstOperand, getOperandAt, getOperandCount, getOperands, getSecondOperand, getThirdOperand

 

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

 

Method Detail

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

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

E17493-04


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