Enum Class FailValGen

java.lang.Object
java.lang.Enum<FailValGen>
ghidra.pcode.emu.jit.gen.var.FailValGen
All Implemented Interfaces:
ValGen<JitFailVal>, Serializable, Comparable<FailValGen>, Constable

public enum FailValGen extends Enum<FailValGen> implements ValGen<JitFailVal>
The generator that is forbidden from actually generating.
  • Enum Constant Details

    • GEN

      public static final FailValGen GEN
      Singleton
  • Method Details

    • values

      public static FailValGen[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FailValGen valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • generateValInitCode

      public void generateValInitCode(JitCodeGenerator gen, JitFailVal v, org.objectweb.asm.MethodVisitor iv)
      Description copied from interface: ValGen
      Prepare any class-level items required to use this variable

      For example, if this represents a direct memory variable, then this can prepare a reference to the portion of the state involved, allowing it to access it readily.

      Specified by:
      generateValInitCode in interface ValGen<JitFailVal>
      Parameters:
      gen - the code generator
      v - the value
      iv - the constructor visitor
    • generateValReadCode

      public JitType generateValReadCode(JitCodeGenerator gen, JitFailVal v, JitTypeBehavior typeReq, org.objectweb.asm.MethodVisitor rv)
      Description copied from interface: ValGen
      Read the value onto the stack
      Specified by:
      generateValReadCode in interface ValGen<JitFailVal>
      Parameters:
      gen - the code generator
      v - the value to read
      typeReq - the required type of the value
      rv - the visitor for the run method
      Returns:
      the actual p-code type (which determines the JVM type) of the value on the stack