|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectedu.ustc.cs.compile.arch.Instruct.Operand
public static class Instruct.Operand
Provides a representation of the operand of the instruct in the
assembly language codes.
An operand could be a register, a register variable, an immediate number,
a register plus an offset, a register variable plus an offset, or a label.
字段摘要 | |
---|---|
private Label |
label
|
private java.lang.Integer |
number
|
private java.lang.Integer |
offset
|
private Register |
reg
|
private RegisterVariable |
regVar
|
private X86Integer |
x86number
|
构造函数摘要 | |
---|---|
Instruct.Operand(java.lang.Integer n)
Constructs an operand which is an immediate number. |
|
Instruct.Operand(Label label)
Constructs an operand which is a label. |
|
Instruct.Operand(Register reg)
Constructs an operand which is a register. |
|
Instruct.Operand(Register reg,
java.lang.Integer offset)
Constructs an operand which is a register plus an offset. |
|
Instruct.Operand(RegisterVariable regVar)
Constructs an operand which is a register variable. |
|
Instruct.Operand(RegisterVariable regVar,
java.lang.Integer offset)
Constructs an operand which is a register variable plus an offset. |
|
Instruct.Operand(X86Integer n)
Constructs an X86 operand which is an immediate number. |
方法摘要 | |
---|---|
boolean |
hasOffset()
Indicates whether this operand consists of an offset. |
boolean |
isLabel()
Indicates whether this operand is a label. |
boolean |
isNumber()
Indicates whether this operand is an immediate number. |
boolean |
isRegister()
Indicates whether this operand consists of a register. |
boolean |
isRegisterVariable()
Indicates whether this operand consists of a register variable. |
boolean |
isX86Number()
Indicates whether this operand is an X86 immediate number. |
Label |
label()
Gets the operand as a label. |
java.lang.Integer |
number()
Gets the operand as an immediate number. |
java.lang.Integer |
offset()
Gets the offset in this operand. |
Register |
register()
Gets the the register in the operand. |
RegisterVariable |
registerVariable()
Gets the register variable in the operand. |
java.lang.String |
toString()
Returns a string representation of this operand. |
X86Integer |
x86Number()
Gets the x86 operand as an immediate number. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
private Register reg
private RegisterVariable regVar
private Label label
private java.lang.Integer number
private java.lang.Integer offset
private X86Integer x86number
构造函数详细信息 |
---|
public Instruct.Operand(Register reg)
reg
- the register.public Instruct.Operand(Register reg, java.lang.Integer offset)
reg
- the register.offset
- the offset.public Instruct.Operand(RegisterVariable regVar)
regVar
- the register variable.public Instruct.Operand(RegisterVariable regVar, java.lang.Integer offset)
regVar
- the register variable.offset
- the offset.public Instruct.Operand(java.lang.Integer n)
n
- the immediate number.public Instruct.Operand(X86Integer n)
n
- the immediate number.public Instruct.Operand(Label label)
label
- the label.方法详细信息 |
---|
public Register register()
public RegisterVariable registerVariable()
public java.lang.Integer number()
public X86Integer x86Number()
public Label label()
public java.lang.Integer offset()
public boolean isRegister()
public boolean isRegisterVariable()
public boolean isNumber()
public boolean isX86Number()
public boolean isLabel()
public boolean hasOffset()
public java.lang.String toString()
java.lang.Object
中的 toString
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |