org.aspectj.compiler.base.ast
Class ForStmt

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.TestStmt
                  extended byorg.aspectj.compiler.base.ast.ForStmt

public class ForStmt
extends TestStmt


Field Summary
protected  Stmt body
           
protected  ASTObject init
           
protected  Expr test
           
protected  Exprs update
           
 
Fields inherited from class org.aspectj.compiler.base.ast.ASTObject
dummySource, parent, sourceLocation
 
Constructor Summary
  ForStmt(ASTObject _init, JavaExpr _test, Exprs _update, Stmt _body)
           
protected ForStmt(SourceLocation source)
           
  ForStmt(SourceLocation location, ASTObject _init, Expr _test, Exprs _update, Stmt _body)
           
 
Method Summary
protected  void cgStmt(org.aspectj.compiler.base.bcg.CodeBuilder cb)
          This procedure does the work of generating bytecode.
 void checkSpec()
           
 ASTObject copyWalk(CopyWalker walker)
           
 Stmt getBody()
           
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 java.lang.String getDefaultDisplayName()
           
 ASTObject getInit()
           
 Expr getTest()
           
 Exprs getUpdate()
           
 boolean isBreakable()
           
 boolean isContinuable()
           
 ASTObject postCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass w)
           
 void setBody(Stmt _body)
           
 void setChildAt(int childIndex, ASTObject child)
           
 void setInit(ASTObject _init)
           
 void setTest(Expr _test)
           
 void setUpdate(Exprs _update)
           
 void unparse(org.aspectj.compiler.base.CodeWriter writer)
           
 void walkCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass w)
           
 void walkFlow(org.aspectj.compiler.base.FlowCheckerPass w)
           
 void walkFrameLoc(org.aspectj.compiler.base.FrameLocPass walker)
           
 
Methods inherited from class org.aspectj.compiler.base.ast.TestStmt
postScope, preScope
 
Methods inherited from class org.aspectj.compiler.base.ast.Stmt
cgTop, completesNormally, isEmpty, mustBeLive, registerLocation, requireBlockStmt, requireStmt, setCompletesNormally
 
Methods inherited from class org.aspectj.compiler.base.ast.ASTObject
addComment, buildAccessMethod, checkNoSharing, cleanup, 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, postAssignmentCheck, postCopy, postFixAST, postImplementMixin, postInnerAccess, postInnerInfo, postLift, postMove, postThreading, preAssignmentCheck, preCopy, preIntroduction, preLift, preMove, preThreading, remove, remove, removeChildAt, replaceWith, setFormalComment, setParent, setParents, setSource, setSourceLocation, setSyntheticSource, showError, showMessage, showTypeError, showWarning, toShortString, toString, unparse, walk, walkAnalysis, walkAssignmentCheck, 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
 

Field Detail

init

protected ASTObject init

test

protected Expr test

update

protected Exprs update

body

protected Stmt body
Constructor Detail

ForStmt

public ForStmt(SourceLocation location,
               ASTObject _init,
               Expr _test,
               Exprs _update,
               Stmt _body)

ForStmt

public ForStmt(ASTObject _init,
               JavaExpr _test,
               Exprs _update,
               Stmt _body)

ForStmt

protected ForStmt(SourceLocation source)
Method Detail

isBreakable

public boolean isBreakable()
Overrides:
isBreakable in class Stmt

isContinuable

public boolean isContinuable()
Overrides:
isContinuable in class Stmt

checkSpec

public void checkSpec()
Overrides:
checkSpec in class TestStmt

unparse

public void unparse(org.aspectj.compiler.base.CodeWriter writer)
Overrides:
unparse in class ASTObject

walkFlow

public void walkFlow(org.aspectj.compiler.base.FlowCheckerPass w)
Overrides:
walkFlow in class ASTObject

walkCleanup

public void walkCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass w)
Overrides:
walkCleanup in class ASTObject

postCleanup

public ASTObject postCleanup(org.aspectj.compiler.base.ByteCodeCleanupPass w)
Overrides:
postCleanup 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 Stmt

walkFrameLoc

public void walkFrameLoc(org.aspectj.compiler.base.FrameLocPass walker)
Overrides:
walkFrameLoc in class ASTObject

getInit

public ASTObject getInit()

setInit

public void setInit(ASTObject _init)

getTest

public Expr getTest()
Specified by:
getTest in class TestStmt

setTest

public void setTest(Expr _test)

getUpdate

public Exprs getUpdate()

setUpdate

public void setUpdate(Exprs _update)

getBody

public Stmt getBody()

setBody

public void setBody(Stmt _body)

copyWalk

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

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 TestStmt