Class BlockContainer
java.lang.Object
net.covers1624.coffeegrinder.bytecode.Instruction
net.covers1624.coffeegrinder.bytecode.insns.BlockContainer
- All Implemented Interfaces:
net.covers1624.quack.util.Copyable<Instruction>
Created by covers1624 on 24/2/21.
-
Field Summary
FieldsFields inherited from class net.covers1624.coffeegrinder.bytecode.Instruction
opcode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,C> R accept(InsnVisitor<R, C> visitor, C ctx) Pass thisInstructionthrough the suppliedInsnVisitor.protected EnumBitSet<InstructionFlag> Called to compute the exposed flags exposed viaInstruction.getFlags().static BlockContainerAny direct flags for thisInstruction.@Nullable Blockintnet.covers1624.quack.collection.FastStream<Leave> Gets the stack type of the value produced by thisInstruction.protected voidprotected voidprotected voidMethods inherited from class net.covers1624.coffeegrinder.bytecode.Instruction
accept, 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, releaseRef, remove, replaceWith, setBytecodeOffset, setOffsets, setSourceLine, setTag, toString, toString, withOffsets
-
Field Details
-
blocks
-
-
Constructor Details
-
BlockContainer
public BlockContainer()
-
-
Method Details
-
getResultType
Description copied from class:InstructionGets the stack type of the value produced by thisInstruction.- Specified by:
getResultTypein classInstruction- Returns:
- The
AType.
-
computeFlags
Description copied from class:InstructionCalled to compute the exposed flags exposed viaInstruction.getFlags().- Overrides:
computeFlagsin classInstruction- Returns:
- The computed flags.
-
getDirectFlags
Description copied from class:InstructionAny direct flags for thisInstruction.The return value should be cached statically inside the
Instructionimpl.- Specified by:
getDirectFlagsin classInstruction- Returns:
- An
EnumBitSetrepresenting the flags. - See Also:
-
onChildModified
protected void onChildModified()- Overrides:
onChildModifiedin classInstruction
-
onConnected
protected void onConnected()- Overrides:
onConnectedin classInstruction
-
onDisconnected
protected void onDisconnected()- Overrides:
onDisconnectedin classInstruction
-
accept
Description copied from class:InstructionPass thisInstructionthrough the suppliedInsnVisitor.- Specified by:
acceptin classInstruction- Parameters:
visitor- TheInsnVisitor.ctx- The context.- Returns:
- The return result from the
InsnVisitor.
-
findClosestContainer
-
getEntryPointOrNull
-
getEntryPoint
-
getLeaveCount
public int getLeaveCount() -
getLeaves
-