Package jnr.a64asm

Class Operand

java.lang.Object
jnr.a64asm.Operand
Direct Known Subclasses:
BaseReg, Conditions, Ext, Immediate, Label, Mem, Offset, Post_index, Pre_index, PrefOp, PRFOP_ENUM, Shift, SysRegister

public class Operand extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Operand(int op, int size)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    Return @c true if operand is label (@c OP_LABEL).
    boolean
    Return @c true if operand is immediate (@c OP_IMM).
    boolean
    Return @c true if operand is label (@c OP_LABEL).
    boolean
    Return @c true if operand is memory address (@c OP_MEM).
    boolean
    Return @c true if operand is none (@c OP_NONE).
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    Return @c true if operand is any (general purpose, mmx or sse) register (@c OP_REG).
    final boolean
    isRegCode(int code)
     
    final boolean
    isRegIndex(int index)
     
    final boolean
    Return @c true if operand is any register or memory.
    final boolean
    isRegMem(int regType)
     
    final boolean
    isRegType(int type)
     
    int
    op()
    Return type of operand, see @c OP.
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • op

      private final int op
    • size

      private final int size
  • Constructor Details

    • Operand

      public Operand(int op, int size)
  • Method Details

    • op

      public int op()
      Return type of operand, see @c OP.
    • size

      public int size()
    • isNone

      public boolean isNone()
      Return @c true if operand is none (@c OP_NONE).
    • isReg

      public boolean isReg()
      Return @c true if operand is any (general purpose, mmx or sse) register (@c OP_REG).
    • isMem

      public boolean isMem()
      Return @c true if operand is memory address (@c OP_MEM).
    • isImm

      public boolean isImm()
      Return @c true if operand is immediate (@c OP_IMM).
    • isLabel

      public boolean isLabel()
      Return @c true if operand is label (@c OP_LABEL).
    • isExtend

      public boolean isExtend()
      Return @c true if operand is label (@c OP_LABEL).
    • isCond

      public boolean isCond()
    • isPrefOp

      public boolean isPrefOp()
    • isPreIndex

      public boolean isPreIndex()
    • isPostIndex

      public boolean isPostIndex()
    • isOffset

      public boolean isOffset()
    • isPrfop

      public boolean isPrfop()
    • isRegMem

      public final boolean isRegMem()
      Return @c true if operand is any register or memory.
    • isRegCode

      public final boolean isRegCode(int code)
    • isRegType

      public final boolean isRegType(int type)
    • isRegIndex

      public final boolean isRegIndex(int index)
    • isRegMem

      public final boolean isRegMem(int regType)