org.aspectj.compiler.base.ast
Class NewExpr

java.lang.Object
  extended byorg.aspectj.compiler.base.CompilerObject
      extended byorg.aspectj.compiler.base.ast.ASTObject
          extended byorg.aspectj.compiler.base.ast.Expr
              extended byorg.aspectj.compiler.base.ast.JavaExpr
                  extended byorg.aspectj.compiler.base.ast.AnyCallExpr
                      extended byorg.aspectj.compiler.base.ast.NewExpr
All Implemented Interfaces:
MajPrimaryExpr, PossibleSoftThrowable
Direct Known Subclasses:
NewArrayExpr, NewInstanceExpr

public abstract class NewExpr
extends AnyCallExpr
implements MajPrimaryExpr


Field Summary
protected  TypeD typeD
           
 
Fields inherited from class org.aspectj.compiler.base.ast.Expr
type
 
Fields inherited from class org.aspectj.compiler.base.ast.ASTObject
dummySource, parent, sourceLocation
 
Constructor Summary
protected NewExpr(SourceLocation source)
           
  NewExpr(SourceLocation location, TypeD _typeD)
           
 
Method Summary
 Type getCalledType()
           
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 java.lang.String getDefaultDisplayName()
           
 Expr getExpr()
           
 Expr getExprOrThis()
           
 java.lang.String getId()
           
 Type getReturnType()
           
 TypeD getTypeD()
           
 void setArgs(Exprs args)
           
 void setChildAt(int childIndex, ASTObject child)
           
 void setExpr(Expr expr)
           
 void setTypeD(TypeD _typeD)
           
 
Methods inherited from class org.aspectj.compiler.base.ast.AnyCallExpr
getArgs, getCodeDec, isSoftThrowable, setSoftThrowable
 
Methods inherited from class org.aspectj.compiler.base.ast.Expr
assertType, canBeCopied, cgBuffer, cgEffect, cgTest, cgValue, cgValue, checkSpec, cleanup, discoverType, getType, isAssignableTo, isConstantFalse, isConstantTrue, isConstantZero, isInConstructorCallExpr, isInExprStmt, isLegalStmt, isMethodConvertableTo, isUltimatelyLiteral, makeQualifiedThis, makeReference, postCopy, setType, showOperatorTypeError, showOperatorTypeError, walkCleanup, walkFrameLoc
 
Methods inherited from class org.aspectj.compiler.base.ast.ASTObject
addComment, buildAccessMethod, checkNoSharing, clearComment, clearParent, contains, containsTypes, copy, copyWalk, display, fixAccessPost, fixAST, fromSource, getAST, getBeginColumn, getBeginLine, getBytecodeType, getBytecodeTypeDec, getComment, getCompilationUnit, getDeclaringType, getEnclosingCodeDec, getEnclosingDec, getEndColumn, getEndLine, getEndPosition, getFormalComment, getLexicalType, getOutermostBytecodeType, getOutermostLexicalType, getParent, getSourceDirectoryName, getSourceFile, getSourceFileName, getSourceLocation, getStartPosition, hasLegalProtectedAccess, hasSource, hasSourceLocation, implementMixin, indexOf, inStaticContext, isLanguageVisible, isLeaf, isSynthetic, makeChild, makeChild, postAssignmentCheck, postCleanup, postFixAST, postImplementMixin, postInnerAccess, postInnerInfo, postLift, postMove, postScope, postThreading, preAssignmentCheck, preCopy, preIntroduction, preLift, preMove, preScope, preThreading, remove, remove, removeChildAt, replaceWith, setFormalComment, setParent, setParents, setSource, setSourceLocation, setSyntheticSource, showError, showMessage, showTypeError, showWarning, toShortString, toString, unparse, unparse, walk, walkAnalysis, walkAssignmentCheck, walkFlow, walkForwardReference, walkInnerInfo, walkMemberMunger, walkScope
 
Methods inherited from class org.aspectj.compiler.base.CompilerObject
getCompiler, getOptions, getTypeManager, getWorld
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.aspectj.compiler.base.ast.MajPrimaryExpr
unparse
 

Field Detail

typeD

protected TypeD typeD
Constructor Detail

NewExpr

public NewExpr(SourceLocation location,
               TypeD _typeD)

NewExpr

protected NewExpr(SourceLocation source)
Method Detail

getExpr

public Expr getExpr()
Specified by:
getExpr in class AnyCallExpr

getExprOrThis

public Expr getExprOrThis()
Specified by:
getExprOrThis in class AnyCallExpr

getId

public java.lang.String getId()
Specified by:
getId in class AnyCallExpr

getReturnType

public Type getReturnType()
Specified by:
getReturnType in class AnyCallExpr

getCalledType

public Type getCalledType()
Specified by:
getCalledType in class AnyCallExpr

setExpr

public void setExpr(Expr expr)
Specified by:
setExpr in class AnyCallExpr

setArgs

public void setArgs(Exprs args)
Specified by:
setArgs in class AnyCallExpr

getTypeD

public TypeD getTypeD()

setTypeD

public void setTypeD(TypeD _typeD)

getChildAt

public ASTObject getChildAt(int childIndex)
Overrides:
getChildAt in class ASTObject

getChildNameAt

public java.lang.String getChildNameAt(int childIndex)
Overrides:
getChildNameAt in class ASTObject

setChildAt

public void setChildAt(int childIndex,
                       ASTObject child)
Overrides:
setChildAt in class ASTObject

getChildCount

public int getChildCount()
Overrides:
getChildCount in class ASTObject

getDefaultDisplayName

public java.lang.String getDefaultDisplayName()
Overrides:
getDefaultDisplayName in class AnyCallExpr