Package ghidra.program.model.lang
Class InjectPayloadCallother
- java.lang.Object
-
- ghidra.program.model.lang.InjectPayloadSleigh
-
- ghidra.program.model.lang.InjectPayloadCallother
-
- All Implemented Interfaces:
InjectPayload
- Direct Known Subclasses:
InjectPayloadCallotherError
public class InjectPayloadCallother extends InjectPayloadSleigh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.program.model.lang.InjectPayload
InjectPayload.InjectParameter
-
-
Field Summary
-
Fields inherited from class ghidra.program.model.lang.InjectPayloadSleigh
name, source, type
-
Fields inherited from interface ghidra.program.model.lang.InjectPayload
CALLFIXUP_TYPE, CALLMECHANISM_TYPE, CALLOTHERFIXUP_TYPE, EXECUTABLEPCODE_TYPE
-
-
Constructor Summary
Constructors Change Modifier Constructor Description protectedInjectPayloadCallother(ConstructTpl pcode, InjectPayloadCallother failedPayload)Constructor for a partial clone of a payload whose p-code failed to parse.protectedInjectPayloadCallother(ConstructTpl pcode, java.lang.String nm)Constructor for a dummy payloadInjectPayloadCallother(java.lang.String sourceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description NEW voidrestoreXml(XmlPullParser parser, SleighLanguage language)Restore the payload from an XML stream.NEW voidsaveXml(java.lang.StringBuilder buffer)Write out configuration parameters as a \XML tag REMOVED InjectPayloadSleighclone() (Removed)REMOVED voidrestoreXml(XmlPullParser parser) (Removed)-
Methods inherited from class ghidra.program.model.lang.InjectPayloadSleigh
equals, getDummyPcode, getInput, getName, getOutput, getParamShift, getPcode, getSource, getType, hashCode, inject, isErrorPlaceholder, isFallThru, isIncidentalCopy, orderParameters, setInputParameters, setOutputParameters, setTemplate
-
-
-
-
Constructor Detail
-
InjectPayloadCallother
protected InjectPayloadCallother(ConstructTpl pcode, InjectPayloadCallother failedPayload)
Constructor for a partial clone of a payload whose p-code failed to parse.- Parameters:
pcode- is the p-code to substitutefailedPayload- is the failed callfixup
-
InjectPayloadCallother
protected InjectPayloadCallother(ConstructTpl pcode, java.lang.String nm)
Constructor for a dummy payload- Parameters:
pcode- is the dummy p-code to usenm- is the name of the payload
-
InjectPayloadCallother
public InjectPayloadCallother(java.lang.String sourceName)
-
-
Method Detail
-
saveXml NEW
public void saveXml(java.lang.StringBuilder buffer)
Description copied from interface:InjectPayloadWrite out configuration parameters as a \XML tag - Specified by:
saveXmlin interfaceInjectPayload- Overrides:
saveXmlin classInjectPayloadSleigh- Parameters:
buffer- is the stream to write to
-
restoreXml NEW
public void restoreXml(XmlPullParser parser, SleighLanguage language) throws XmlParseException
Description copied from interface:InjectPayloadRestore the payload from an XML stream. The root expected document is the \tag, which may be wrapped with another tag by the derived class. - Specified by:
restoreXmlin interfaceInjectPayload- Overrides:
restoreXmlin classInjectPayloadSleigh- Parameters:
parser- is the XML streamlanguage- is used to resolve registers and address spaces- Throws:
XmlParseException- for badly formed XML
-
-