public class ForEachLoop extends AbstractLoop
opcode| Constructor and Description |
|---|
ForEachLoop(LocalReference variable,
Instruction iterator,
BlockContainer body) |
| Modifier and Type | Method and Description |
|---|---|
<R,C> R |
accept(InsnVisitor<R,C> visitor,
C ctx)
Pass this
Instruction through the supplied InsnVisitor. |
protected EnumBitSet<InstructionFlag> |
computeFlags()
Called to compute the exposed flags exposed via
Instruction.getFlags(). |
BlockContainer |
getBody() |
EnumBitSet<InstructionFlag> |
getDirectFlags()
Any direct flags for this
Instruction. |
Instruction |
getIterator() |
AType |
getResultType()
Gets the stack type of the value produced by this
Instruction. |
LocalReference |
getVariable() |
protected void |
onChildModified() |
protected void |
onConnected() |
getContinuesaccept, addRef, ancestorsOfType, copy, descendantsMatching, descendantsOfType, descendantsToList, descendantsToListWhere, descendantsWhere, firstAncestorOfType, getBytecodeOffset, getChildren, getDescendants, getFirstChild, getFirstChildOrNull, getFlags, getLastChild, getLastChildOrNull, getNextSibling, getNextSiblingOrNull, getParent, getParentOrNull, getPrevSibling, getPrevSiblingOrNull, getSourceLine, getTag, hasDirectFlag, hasFlag, insertAfter, insertBefore, invalidateFlags, isConnected, isDescendantOf, onDisconnected, releaseRef, remove, replaceWith, setBytecodeOffset, setOffsets, setSourceLine, setTag, toString, toString, withOffsetspublic ForEachLoop(LocalReference variable, Instruction iterator, BlockContainer body)
public AType getResultType()
InstructionInstruction.getResultType in class InstructionAType.public EnumBitSet<InstructionFlag> getDirectFlags()
InstructionInstruction.
The return value should be cached statically inside the Instruction impl.
getDirectFlags in class InstructionEnumBitSet representing the flags.Instruction.getFlags()protected EnumBitSet<InstructionFlag> computeFlags()
InstructionInstruction.getFlags().computeFlags in class Instructionpublic <R,C> R accept(InsnVisitor<R,C> visitor, C ctx)
InstructionInstruction through the supplied InsnVisitor.accept in class Instructionvisitor - The InsnVisitor.ctx - The context.InsnVisitor.protected void onChildModified()
onChildModified in class Instructionprotected void onConnected()
onConnected in class Instructionpublic LocalReference getVariable()
public Instruction getIterator()
public BlockContainer getBody()
getBody in class AbstractLoop