cetus.hir
Class UserSpecifier

java.lang.Object
  extended by cetus.hir.Specifier
      extended by cetus.hir.UserSpecifier
All Implemented Interfaces:
Printable

public class UserSpecifier
extends Specifier

Represents the name of a user-defined type, such as created by a typedef, class declaration, etc.


Field Summary
 
Fields inherited from class cetus.hir.Specifier
ABSTRACT, AUTO, BOOL, BOOLEAN, BYTE, CBOOL, CCOMPLEX, CHAR, CIMAGINARY, CONST, DOUBLE, EXPLICIT, EXTERN, FINAL, FLOAT, FRIEND, INLINE, INT, LONG, MUTABLE, NATIVE, PRIVATE, PROTECTED, PUBLIC, REFERENCE, REGISTER, RESTRICT, SHORT, SIGNED, STATIC, STRICTFP, SYNCHRONIZED, THREADSAFE, TRANSIENT, TYPEDEF, UNSIGNED, value, VIRTUAL, VOID, VOLATILE, WCHAR_T
 
Constructor Summary
UserSpecifier(IDExpression usertype)
           
 
Method Summary
 IDExpression getIDExpression()
           
 boolean isStructure()
           
 void print(java.io.OutputStream stream)
          Print the code for the IR represented by the object.
 java.lang.String toString()
           
 
Methods inherited from class cetus.hir.Specifier
fromString, isCType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserSpecifier

public UserSpecifier(IDExpression usertype)
Method Detail

getIDExpression

public IDExpression getIDExpression()

isStructure

public boolean isStructure()

print

public void print(java.io.OutputStream stream)
Description copied from interface: Printable
Print the code for the IR represented by the object. Always calls object_print_method(this, stream). If the object's print method is null, nothing is printed; this provides an easy mechanism to temporarily hide something.

Specified by:
print in interface Printable
Overrides:
print in class Specifier
Parameters:
stream - The stream on which to print the data.

toString

public java.lang.String toString()
Overrides:
toString in class Specifier