cetus.hir
Class QualifiedID
java.lang.Object
cetus.hir.Expression
cetus.hir.IDExpression
cetus.hir.QualifiedID
- All Implemented Interfaces:
- Printable, Traversable, java.lang.Cloneable, java.lang.Comparable<Expression>
public class QualifiedID
- extends IDExpression
|
Constructor Summary |
QualifiedID(boolean global,
java.util.List id_expr_list)
|
QualifiedID(java.util.List id_expr_list)
|
|
Method Summary |
java.lang.Object |
clone()
Creates and returns a deep copy of this expression. |
static void |
defaultPrint(QualifiedID ident,
java.io.OutputStream stream)
Prints an identifier to a stream. |
java.util.LinkedList |
getIDExpressionList()
This method returns the list of IDs in the qualified ID |
java.lang.String |
toString()
Every expression class should override toString method. |
| Methods inherited from class cetus.hir.Expression |
compareTo, equals, equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QualifiedID
public QualifiedID(java.util.List id_expr_list)
QualifiedID
public QualifiedID(boolean global,
java.util.List id_expr_list)
getIDExpressionList
public java.util.LinkedList getIDExpressionList()
- This method returns the list of IDs in the qualified ID
clone
public java.lang.Object clone()
- Description copied from class:
Expression
- Creates and returns a deep copy of this expression.
- Overrides:
clone in class IDExpression
- Returns:
- a deep copy of this expression.
defaultPrint
public static void defaultPrint(QualifiedID ident,
java.io.OutputStream stream)
- Prints an identifier to a stream.
- Parameters:
ident - The identifier to print.stream - The stream on which to print the identifier.
toString
public java.lang.String toString()
- Description copied from class:
Expression
- Every expression class should override toString method.
- Overrides:
toString in class Expression