Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.model.java.source.tree
Interface NewClassExpressionT  view NewClassExpressionT download NewClassExpressionT.java

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 inherited from class 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, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Method Detail

getAnonymousClass

public ClassT getAnonymousClass()

getType

public TypeReferenceT getType()
Gets the type reference for this element.


setType

public void setType(TypeReferenceT type)
Unlinks the current source type and links the input element.