Package ghidra.app.plugin.processors.sleigh.expression

# Class PatternExpression

java.lang.Object
ghidra.app.plugin.processors.sleigh.expression.PatternExpression

Direct Known Subclasses:
  `BinaryExpression`, `PatternValue`, `UnaryExpression`

public abstract class PatternExpression extends Object
An expression which results in a pattern for a specific InstructionContext

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PatternExpression()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract long`
  `getValue(ParserWalker walker)`
  `static PatternExpression`
  `restoreExpression(XmlPullParser parser, SleighLanguage lang)`
  `abstract void`
  `restoreXml(XmlPullParser parser, SleighLanguage lang)`
  `abstract String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### PatternExpression

    public PatternExpression()

- ## Method Details

  - ### getValue

    public abstract long getValue(ParserWalker walker) throws MemoryAccessException
    Throws:
      `MemoryAccessException`

  - ### restoreXml

    public abstract void restoreXml(XmlPullParser parser, SleighLanguage lang)

  - ### restoreExpression

    public static PatternExpression restoreExpression(XmlPullParser parser, SleighLanguage lang)

  - ### toString

    public abstract String toString()
    Overrides:
      `toString` in class `Object`