Package ghidra.program.model.lang
Class InjectPayloadSegment
- java.lang.Object
-
- ghidra.program.model.lang.InjectPayloadSleigh
-
- ghidra.program.model.lang.InjectPayloadSegment
-
- All Implemented Interfaces:
InjectPayload
public class InjectPayloadSegment 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 Constructor Description InjectPayloadSegment(java.lang.String source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
void
restoreXml(XmlPullParser parser, SleighLanguage language)
Restore the payload from an XML stream.void
saveXml(java.lang.StringBuilder buffer)
Write out configuration parameters as a \XML tag -
Methods inherited from class ghidra.program.model.lang.InjectPayloadSleigh
getDummyPcode, getInput, getName, getOutput, getParamShift, getPcode, getSource, getType, inject, isErrorPlaceholder, isFallThru, isIncidentalCopy, orderParameters, setInputParameters, setOutputParameters, setTemplate
-
-
-
-
Method Detail
-
saveXml
public void saveXml(java.lang.StringBuilder buffer)
Description copied from interface:InjectPayload
Write out configuration parameters as a \XML tag - Specified by:
saveXml
in interfaceInjectPayload
- Overrides:
saveXml
in classInjectPayloadSleigh
- Parameters:
buffer
- is the stream to write to
-
restoreXml
public void restoreXml(XmlPullParser parser, SleighLanguage language) throws XmlParseException
Description copied from interface:InjectPayload
Restore 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:
restoreXml
in interfaceInjectPayload
- Overrides:
restoreXml
in classInjectPayloadSleigh
- Parameters:
parser
- is the XML streamlanguage
- is used to resolve registers and address spaces- Throws:
XmlParseException
- for badly formed XML
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classInjectPayloadSleigh
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classInjectPayloadSleigh
-
-