jnr.x86asm
Class Operand

java.lang.Object
  extended by jnr.x86asm.Operand
Direct Known Subclasses:
BaseReg, Immediate, Label, Mem

public class Operand
extends Object


Constructor Summary
Operand(int op, int size)
           
 
Method Summary
 boolean isImm()
          Return @c true if operand is immediate (@c OP_IMM).
 boolean isLabel()
          Return @c true if operand is label (@c OP_LABEL).
 boolean isMem()
          Return @c true if operand is memory address (@c OP_MEM).
 boolean isNone()
          Return @c true if operand is none (@c OP_NONE).
 boolean isReg()
          Return @c true if operand is any (general purpose, mmx or sse) register (@c OP_REG).
 boolean isRegCode(int code)
           
 boolean isRegIndex(int index)
           
 boolean isRegMem()
          Return @c true if operand is any register or memory.
 boolean isRegMem(int regType)
           
 boolean isRegType(int type)
           
 int op()
          Return type of operand, see @c OP.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operand

public Operand(int op,
               int size)
Method Detail

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).


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)


Copyright © 2012. All Rights Reserved.