cetus.hir
Class PointerSpecifier

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

public class PointerSpecifier
extends Specifier

Represents a C or C++ pointer.


Field Summary
static PointerSpecifier CONST
          const
static PointerSpecifier CONST_VOLATILE
          const volatile
static PointerSpecifier UNQUALIFIED
           
static PointerSpecifier VOLATILE
          volatile
 
Fields inherited from class cetus.hir.Specifier
ABSTRACT, AUTO, BOOL, BOOLEAN, BYTE, CBOOL, CCOMPLEX, CHAR, CIMAGINARY, 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, WCHAR_T
 
Method Summary
 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
 

Field Detail

UNQUALIFIED

public static final PointerSpecifier UNQUALIFIED

CONST

public static final PointerSpecifier CONST
const


VOLATILE

public static final PointerSpecifier VOLATILE
volatile


CONST_VOLATILE

public static final PointerSpecifier CONST_VOLATILE
const volatile

Method Detail

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