org.aspectj.compiler.base.ast
Class Decs

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.Decs
Direct Known Subclasses:
AspectMembers

public class Decs
extends Stmt


Field Summary
 Dec[] children
           
protected  int size
           
 
Fields inherited from class org.aspectj.compiler.base.ast.ASTObject
dummySource, parent, sourceLocation
 
Constructor Summary
Decs()
           
Decs(Dec[] _children)
           
Decs(Dec child1, Decs decs)
           
Decs(SourceLocation location)
           
Decs(SourceLocation location, Dec child1)
           
Decs(SourceLocation location, Dec[] _children)
           
Decs(SourceLocation location, Dec child1, Dec child2)
           
Decs(SourceLocation location, Dec child1, Dec child2, Dec child3)
           
 
Method Summary
 void add(Dec child)
           
 void add(int index, Dec child)
           
 void addAll(Decs collection)
           
 void addAll(int index, Decs collection)
           
 void append(Dec dec)
           
 void append(Decs decs)
           
protected  void cgStmt(org.aspectj.compiler.base.bcg.CodeBuilder cb)
          This procedure does the work of generating bytecode.
 void cleanup()
           
 ASTObject copyWalk(CopyWalker walker)
           
 Dec get(int index)
           
 ASTObject getChildAt(int childIndex)
           
 int getChildCount()
           
 java.lang.String getChildNameAt(int childIndex)
           
 java.lang.String getDefaultDisplayName()
           
 java.util.List getList()
           
 java.util.ListIterator iterator()
           
 void prepend(Dec dec)
           
 void remove(Dec dec)
           
 void remove(int index)
           
 void resize(int newSize)
           
 void set(int index, Dec child)
           
 void setChildAt(int childIndex, ASTObject child)
           
 int size()
           
 void unparse(org.aspectj.compiler.base.CodeWriter writer)
           
 
Methods inherited from class org.aspectj.compiler.base.ast.Stmt
cgTop, completesNormally, isBreakable, isContinuable, isEmpty, mustBeLive, registerLocation, requireBlockStmt, 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, 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, postCopy, postFixAST, postImplementMixin, postInnerAccess, postInnerInfo, postLift, postMove, postScope, postThreading, preAssignmentCheck, preCopy, preIntroduction, preLift, preMove, preScope, preThreading, remove, removeChildAt, replaceWith, setFormalComment, setParent, setParents, setSource, setSourceLocation, setSyntheticSource, showError, showMessage, showTypeError, showWarning, toShortString, toString, unparse, walk, walkAnalysis, walkAssignmentCheck, walkCleanup, walkFlow, walkForwardReference, walkFrameLoc, 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

size

protected int size

children

public Dec[] children
Constructor Detail

Decs

public Decs(SourceLocation location,
            Dec[] _children)

Decs

public Decs(Dec[] _children)

Decs

public Decs(Dec child1,
            Decs decs)

Decs

public Decs(SourceLocation location)

Decs

public Decs()

Decs

public Decs(SourceLocation location,
            Dec child1)

Decs

public Decs(SourceLocation location,
            Dec child1,
            Dec child2)

Decs

public Decs(SourceLocation location,
            Dec child1,
            Dec child2,
            Dec child3)
Method Detail

getList

public java.util.List getList()

iterator

public java.util.ListIterator iterator()

append

public void append(Decs decs)

append

public void append(Dec dec)

prepend

public void prepend(Dec dec)

unparse

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

remove

public void remove(Dec dec)

cleanup

public void cleanup()
Overrides:
cleanup 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

copyWalk

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

getChildAt

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

setChildAt

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

getChildNameAt

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

getChildCount

public int getChildCount()
Overrides:
getChildCount in class ASTObject

size

public int size()

get

public Dec get(int index)

set

public void set(int index,
                Dec child)

resize

public void resize(int newSize)

addAll

public void addAll(Decs collection)

addAll

public void addAll(int index,
                   Decs collection)

add

public void add(Dec child)

add

public void add(int index,
                Dec child)

remove

public void remove(int index)
Overrides:
remove in class ASTObject

getDefaultDisplayName

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