org.aspectj.compiler.base.ast
Class NewArrayExpr

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
                          extended byorg.aspectj.compiler.base.ast.NewArrayExpr
All Implemented Interfaces:
MajPrimaryExpr, PossibleSoftThrowable

public class NewArrayExpr
extends NewExpr


Field Summary
protected  Exprs dimExprs
           
protected  ArrayInitializer initializer
           
 
Fields inherited from class org.aspectj.compiler.base.ast.NewExpr
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 NewArrayExpr(SourceLocation source)
           
  NewArrayExpr(SourceLocation location, TypeD _typeD, ArrayInitializer _initializer, Exprs _dimExprs)
           
  NewArrayExpr(TypeD _typeD, ArrayInitializer _initializer, Exprs _dimExprs)
           
 
Method Summary
protected  void cgValue(org.aspectj.compiler.base.bcg.CodeBuilder cb)
          Leaves the value of this expression on the stack.
 ASTObject copyWalk(CopyWalker walker)
           
 Type discoverType()
           
 Exprs getArgs()
           
 Type getCalledType()
           
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 CodeDec getCodeDec()
           
 java.lang.String getDefaultDisplayName()
           
 Exprs getDimExprs()
           
 ArrayInitializer getInitializer()
           
 ASTObject postAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
           
 void preAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
           
 void setChildAt(int childIndex, ASTObject child)
           
 void setDimExprs(Exprs _dimExprs)
           
 void setInitializer(ArrayInitializer _initializer)
           
 void unparse(org.aspectj.compiler.base.CodeWriter writer)
           
 
Methods inherited from class org.aspectj.compiler.base.ast.NewExpr
getExpr, getExprOrThis, getId, getReturnType, getTypeD, setArgs, setExpr, setTypeD
 
Methods inherited from class org.aspectj.compiler.base.ast.AnyCallExpr
isSoftThrowable, setSoftThrowable
 
Methods inherited from class org.aspectj.compiler.base.ast.Expr
assertType, canBeCopied, cgBuffer, cgEffect, cgTest, cgValue, checkSpec, cleanup, 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, 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, postCleanup, postFixAST, postImplementMixin, postInnerAccess, postInnerInfo, postLift, postMove, postScope, postThreading, preCopy, preIntroduction, preLift, preMove, preScope, preThreading, remove, remove, removeChildAt, replaceWith, setFormalComment, setParent, setParents, setSource, setSourceLocation, setSyntheticSource, showError, showMessage, showTypeError, showWarning, toShortString, toString, 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

initializer

protected ArrayInitializer initializer

dimExprs

protected Exprs dimExprs
Constructor Detail

NewArrayExpr

public NewArrayExpr(SourceLocation location,
                    TypeD _typeD,
                    ArrayInitializer _initializer,
                    Exprs _dimExprs)

NewArrayExpr

public NewArrayExpr(TypeD _typeD,
                    ArrayInitializer _initializer,
                    Exprs _dimExprs)

NewArrayExpr

protected NewArrayExpr(SourceLocation source)
Method Detail

discoverType

public Type discoverType()
Specified by:
discoverType in class Expr

getArgs

public Exprs getArgs()
Specified by:
getArgs in class AnyCallExpr

getCodeDec

public CodeDec getCodeDec()
Specified by:
getCodeDec in class AnyCallExpr

getCalledType

public Type getCalledType()
Overrides:
getCalledType in class NewExpr

unparse

public void unparse(org.aspectj.compiler.base.CodeWriter writer)
             throws java.io.IOException
Overrides:
unparse in class ASTObject
Throws:
java.io.IOException

preAssignmentCheck

public void preAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
Overrides:
preAssignmentCheck in class ASTObject

postAssignmentCheck

public ASTObject postAssignmentCheck(org.aspectj.compiler.base.AssignmentCheckerPass walker)
Overrides:
postAssignmentCheck in class ASTObject

cgValue

protected void cgValue(org.aspectj.compiler.base.bcg.CodeBuilder cb)
Description copied from class: Expr
Leaves the value of this expression on the stack. May self-call Expr.cgTest(CodeBuilder, Label, Label).

Overrides:
cgValue in class Expr

getInitializer

public ArrayInitializer getInitializer()

setInitializer

public void setInitializer(ArrayInitializer _initializer)

getDimExprs

public Exprs getDimExprs()

setDimExprs

public void setDimExprs(Exprs _dimExprs)

copyWalk

public ASTObject copyWalk(CopyWalker walker)
Overrides:
copyWalk in class ASTObject

getChildAt

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

getChildNameAt

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

setChildAt

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

getChildCount

public int getChildCount()
Overrides:
getChildCount in class NewExpr

getDefaultDisplayName

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