| 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | ||||||||
java.lang.Objectedu.ustc.cs.compile.arch.Directive.Argument
public static class Directive.Argument
This class provides a representation of the argument of the directive in the
 assembly language codes.
 An argument could be a string, a label, or an integer.
| 字段摘要 | |
|---|---|
private  java.lang.Integer | 
integer
 | 
private  Label | 
label
 | 
private  java.lang.String | 
string
 | 
| 构造函数摘要 | |
|---|---|
Directive.Argument(java.lang.Integer n)
constructs an argument which is an integer.  | 
|
Directive.Argument(Label label)
constructs an argument which is a label.  | 
|
Directive.Argument(java.lang.String string)
constructs an argument which is a string.  | 
|
| 方法摘要 | |
|---|---|
 java.lang.Integer | 
integer()
gets the argument as an integer.  | 
 boolean | 
isInteger()
decides whether this argument is an integer.  | 
 boolean | 
isLabel()
decides whether this argument is a label.  | 
 boolean | 
isString()
decides whether this argument is a string.  | 
 Label | 
label()
gets the argument as a label.  | 
 java.lang.String | 
string()
gets the argument as a string.  | 
 java.lang.String | 
toString()
returns a string representation of this argument.  | 
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 字段详细信息 | 
|---|
private java.lang.String string
private Label label
private java.lang.Integer integer
| 构造函数详细信息 | 
|---|
public Directive.Argument(java.lang.String string)
string - the stringpublic Directive.Argument(Label label)
label - the labelpublic Directive.Argument(java.lang.Integer n)
n - the integer| 方法详细信息 | 
|---|
public java.lang.String string()
public Label label()
public java.lang.Integer integer()
public boolean isString()
public boolean isLabel()
public boolean isInteger()
public java.lang.String toString()
java.lang.Object 中的 toString
  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | ||||||||