|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectedu.ustc.cs.compile.arch.AssemblyElement
edu.ustc.cs.compile.arch.Directive
public class Directive
Provides a representation of the directive in the assembly language codes.
A directive consists of a director (represented byDirector
)
and a list of arguments (represented by Directive.Argument
).X86Director
and
MIPSDirector
.
嵌套类摘要 | |
---|---|
static class |
Directive.Argument
This class provides a representation of the argument of the directive in the assembly language codes. |
字段摘要 | |
---|---|
private java.util.List<Directive.Argument> |
arguments
|
private Director |
director
|
构造函数摘要 | |
---|---|
Directive(Director director,
java.util.List<Directive.Argument> arguments)
Constructs an object to represent a directive. |
方法摘要 | |
---|---|
java.util.List<Directive.Argument> |
arguments()
gets the arguments of this directive. |
Director |
director()
Gets the director of this directive. |
java.lang.String |
toString()
returns a string representation of this directive. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
private Director director
private java.util.List<Directive.Argument> arguments
构造函数详细信息 |
---|
public Directive(Director director, java.util.List<Directive.Argument> arguments)
director
- the director of the directivearguments
- a list of arguments of this directive. It should be null
, if the directive has no arguments. The member of this
list is of type Argument.方法详细信息 |
---|
public Director director()
public java.util.List<Directive.Argument> arguments()
public java.lang.String toString()
java.lang.Object
中的 toString
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |