Class AbstractOperandBuilder<T extends IInstructionOperand>
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.processor.AbstractOperandBuilder<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
IOperandBuilder<T>
- Direct Known Subclasses:
AbstractImmediateOperandBuilder
public abstract class AbstractOperandBuilder<T extends IInstructionOperand>
extends Object
implements IOperandBuilder<T>
An operand builder that supports an optional value as well as a memory area.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractOperandBuilder
(IEncodedMemoryArea memoryArea) AbstractOperandBuilder
(IEncodedMemoryArea memoryArea, int flags) AbstractOperandBuilder
(IEncodedMemoryArea memoryArea, int flags, int defaultValue, int defaultValueMask) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
decodeMemoryArea
(byte[] code) int
getFlags()
protected IEncodedMemoryArea
boolean
isOptional
(long value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.asm.processor.IOperandBuilder
buildOperand
-
Field Details
-
OPTIONAL_DEFAULT_VALUE
public static final int OPTIONAL_DEFAULT_VALUE- See Also:
-
OPTIONAL_MASK
public static final int OPTIONAL_MASK- See Also:
-
NO_FLAG
public static final int NO_FLAG- See Also:
-
OPTIONAL
public static final int OPTIONAL- See Also:
-
flags
protected int flags
-
-
Constructor Details
-
AbstractOperandBuilder
-
AbstractOperandBuilder
-
AbstractOperandBuilder
public AbstractOperandBuilder(IEncodedMemoryArea memoryArea, int flags, int defaultValue, int defaultValueMask)
-
-
Method Details
-
isOptional
public boolean isOptional(long value) -
getFlags
public int getFlags() -
getMemoryArea
-
decodeMemoryArea
protected int decodeMemoryArea(byte[] code)
-