public abstract class CstInsn extends Insn
Insn.BaseVisitor, Insn.Visitor| Constructor and Description |
|---|
CstInsn(Rop opcode,
SourcePosition position,
RegisterSpec result,
RegisterSpecList sources,
Constant cst)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentEquals(Insn b)
Compares Insn contents, since
Insn.equals() is defined
to be an identity compare. |
Constant |
getConstant()
Gets the constant.
|
java.lang.String |
getInlineString()
Gets an "inline" string portion for toHuman(), if available.
|
accept, canThrow, copy, equals, getCatches, getLocalAssignment, getOpcode, getPosition, getResult, getSources, hashCode, toHuman, toHumanWithInline, toString, toStringWithInline, withAddedCatch, withNewRegisters, withRegisterOffset, withSourceLiteralpublic CstInsn(Rop opcode, SourcePosition position, RegisterSpec result, RegisterSpecList sources, Constant cst)
opcode - non-null; the opcodeposition - non-null; source positionresult - null-ok; spec for the result, if anysources - non-null; specs for all the sourcescst - non-null; constantpublic java.lang.String getInlineString()
getInlineString in class Insnnull-ok; if non-null, the inline text for toHuman()public Constant getConstant()
non-null; the constantpublic boolean contentEquals(Insn b)
Insn.equals() is defined
to be an identity compare. Insn's are contentEquals()
if they have the same opcode, registers, source position, and other
metadata.contentEquals in class InsnCopyright © 2020. All Rights Reserved.