org.aspectj.compiler.base.ast
Class ConstructorBody

java.lang.Object
  extended byorg.aspectj.compiler.base.CompilerObject
      extended byorg.aspectj.compiler.base.ast.ASTObject
          extended byorg.aspectj.compiler.base.ast.Stmt
              extended byorg.aspectj.compiler.base.ast.BlockStmt
                  extended byorg.aspectj.compiler.base.ast.CodeBody
                      extended byorg.aspectj.compiler.base.ast.ConstructorBody
All Implemented Interfaces:
AspectMember

public class ConstructorBody
extends CodeBody


Field Summary
protected  ConstructorCallExpr constructorCall
           
 
Fields inherited from class org.aspectj.compiler.base.ast.CodeBody
parsed
 
Fields inherited from class org.aspectj.compiler.base.ast.BlockStmt
stmts, tmpStmts
 
Fields inherited from class org.aspectj.compiler.base.ast.ASTObject
dummySource, parent, sourceLocation
 
Constructor Summary
protected ConstructorBody(SourceLocation source)
           
  ConstructorBody(SourceLocation location, Stmts _stmts, boolean _parsed, ConstructorCallExpr _constructorCall)
           
  ConstructorBody(SourceLocation location, Stmts _stmts, ConstructorCallExpr _constructorCall, boolean _parsed)
           
  ConstructorBody(SourceLocation location, Stmts _tmpStmts, Stmts _stmts, boolean _parsed, ConstructorCallExpr _constructorCall)
           
 
Method Summary
protected  void cgStmt(org.aspectj.compiler.base.bcg.CodeBuilder cb)
          This procedure does the work of generating bytecode.
 void cleanup()
           
 ASTObject copyWalk(CopyWalker walker)
           
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 ConstructorCallExpr getConstructorCall()
           
 java.lang.String getDefaultDisplayName()
           
 void preScope(ScopeWalker walker)
           
 void preThreading(org.aspectj.compiler.base.LocalClassPass.ThreadingWalker walker)
           
 void setChildAt(int childIndex, ASTObject child)
           
 void setConstructorCall(ConstructorCallExpr _constructorCall)
           
protected  void setupDefaultConstructorCall()
           
 void unparse(org.aspectj.compiler.base.CodeWriter writer)
           
 
Methods inherited from class org.aspectj.compiler.base.ast.CodeBody
getEnclosingCodeDec, getEnclosingDec, getParsed, postCleanup, setParsed, walkScope
 
Methods inherited from class org.aspectj.compiler.base.ast.BlockStmt
addTemporary, checkReturnType, getStmts, getTmpStmts, isEmpty, makeTemporary, makeTempsExplicit, mustBeLive, postScope, requireBlockStmt, setStmts, setTmpStmts, walkCleanup, walkFlow, walkFrameLoc
 
Methods inherited from class org.aspectj.compiler.base.ast.Stmt
cgTop, completesNormally, isBreakable, isContinuable, registerLocation, requireStmt, setCompletesNormally
 
Methods inherited from class org.aspectj.compiler.base.ast.ASTObject
addComment, buildAccessMethod, checkNoSharing, checkSpec, clearComment, clearParent, contains, containsTypes, copy, display, fixAccessPost, fixAST, fromSource, getAST, getBeginColumn, getBeginLine, getBytecodeType, getBytecodeTypeDec, getComment, getCompilationUnit, getDeclaringType, 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, postCopy, postFixAST, postImplementMixin, postInnerAccess, postInnerInfo, postLift, postMove, postThreading, preAssignmentCheck, preCopy, preIntroduction, preLift, preMove, remove, remove, removeChildAt, replaceWith, setFormalComment, setParent, setParents, setSource, setSourceLocation, setSyntheticSource, showError, showMessage, showTypeError, showWarning, toShortString, toString, unparse, walk, walkAnalysis, walkAssignmentCheck, walkForwardReference, walkInnerInfo, walkMemberMunger
 
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.crosscuts.ast.AspectMember
cgTop, setParent, unparse
 

Field Detail

constructorCall

protected ConstructorCallExpr constructorCall
Constructor Detail

ConstructorBody

public ConstructorBody(SourceLocation location,
                       Stmts _stmts,
                       ConstructorCallExpr _constructorCall,
                       boolean _parsed)

ConstructorBody

public ConstructorBody(SourceLocation location,
                       Stmts _stmts,
                       boolean _parsed,
                       ConstructorCallExpr _constructorCall)

ConstructorBody

public ConstructorBody(SourceLocation location,
                       Stmts _tmpStmts,
                       Stmts _stmts,
                       boolean _parsed,
                       ConstructorCallExpr _constructorCall)

ConstructorBody

protected ConstructorBody(SourceLocation source)
Method Detail

setupDefaultConstructorCall

protected void setupDefaultConstructorCall()

preScope

public void preScope(ScopeWalker walker)
Overrides:
preScope in class BlockStmt

unparse

public void unparse(org.aspectj.compiler.base.CodeWriter writer)
Specified by:
unparse in interface AspectMember
Overrides:
unparse in class BlockStmt

cleanup

public void cleanup()
Specified by:
cleanup in interface AspectMember
Overrides:
cleanup in class CodeBody

preThreading

public void preThreading(org.aspectj.compiler.base.LocalClassPass.ThreadingWalker walker)
Overrides:
preThreading in class ASTObject

cgStmt

protected void cgStmt(org.aspectj.compiler.base.bcg.CodeBuilder cb)
Description copied from class: Stmt
This procedure does the work of generating bytecode. Its main requirement is to leave the stack empty. This method should only be called from Stmt.cgTop(org.aspectj.compiler.base.bcg.CodeBuilder).

Overrides:
cgStmt in class BlockStmt

getConstructorCall

public ConstructorCallExpr getConstructorCall()

setConstructorCall

public void setConstructorCall(ConstructorCallExpr _constructorCall)

copyWalk

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

getChildAt

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

getChildNameAt

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

setChildAt

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

getChildCount

public int getChildCount()
Overrides:
getChildCount in class BlockStmt

getDefaultDisplayName

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