edu.ustc.cs.compile.arch
类 Label

java.lang.Object
  继承者 edu.ustc.cs.compile.arch.AssemblyElement
      继承者 edu.ustc.cs.compile.arch.Label

public class Label
extends AssemblyElement

Provides a representation of the label in the assembly language codes.

A label is a string symbol indicating an address. This string symbol is called the name of the label, and is uniqe in a whole assembly language program.
To representing label "main", the following codes are used: Label label = new Label("main");


字段摘要
private  java.lang.String label
           
 
构造函数摘要
Label(java.lang.String label)
          Constructs a label.
 
方法摘要
 boolean equals(java.lang.Object o)
          Indicates whether another object equals to this label.
 java.lang.String label()
          Gets the name of this label.
 java.lang.String toString()
          Returns a string representataion of this label.
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

label

private java.lang.String label
构造函数详细信息

Label

public Label(java.lang.String label)
Constructs a label.

参数:
label - the name of the label.
方法详细信息

label

public java.lang.String label()
Gets the name of this label.

返回:
the name of this label.

toString

public java.lang.String toString()
Returns a string representataion of this label.

覆盖:
java.lang.Object 中的 toString
返回:
the string representation of this label.

equals

public boolean equals(java.lang.Object o)
Indicates whether another object equals to this label.

覆盖:
java.lang.Object 中的 equals
参数:
o - another object
返回:
true if o is a label and has the same name with this label.