Class Reference
java.lang.Object
net.covers1624.coffeegrinder.bytecode.Instruction
net.covers1624.coffeegrinder.bytecode.insns.Reference
- All Implemented Interfaces:
net.covers1624.quack.util.Copyable<Instruction>
- Direct Known Subclasses:
ArrayElementReference,FieldReference,LocalReference
Created by covers1624 on 7/12/21.
-
Field Summary
Fields inherited from class net.covers1624.coffeegrinder.bytecode.Instruction
opcode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Deep copy this instruction.Any direct flags for thisInstruction.final ATypeGets the stack type of the value produced by thisInstruction.abstract ATypegetType()booleanbooleanprotected voidMethods inherited from class net.covers1624.coffeegrinder.bytecode.Instruction
accept, accept, addRef, ancestorsOfType, computeFlags, 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, onChildModified, onConnected, releaseRef, remove, replaceWith, setBytecodeOffset, setOffsets, setSourceLine, setTag, toString, toString, withOffsets
-
Constructor Details
-
Reference
-
-
Method Details
-
getResultType
Description copied from class:InstructionGets the stack type of the value produced by thisInstruction.- Specified by:
getResultTypein classInstruction- Returns:
- The
AType.
-
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:
-
copy
Description copied from class:InstructionDeep copy this instruction.This many not be supported by all instructions.
Implementors should use copy-constructor syntax.
- Specified by:
copyin interfacenet.covers1624.quack.util.Copyable<Instruction>- Overrides:
copyin classInstruction- Returns:
- The copied instruction.
-
onDisconnected
protected void onDisconnected()- Overrides:
onDisconnectedin classInstruction
-
getType
-
isReadFrom
public boolean isReadFrom() -
isWrittenTo
public boolean isWrittenTo()
-