cetus.hir
Class BitfieldSpecifier

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

public class BitfieldSpecifier
extends Specifier

BitfieldSpecifier represents the bit field declared in a structure.


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
BitfieldSpecifier(Expression e)
          Constructs a bit field specifier from the given bit expression.
 
Method Summary
 void print(java.io.OutputStream stream)
          Prints the specifier to the output stream.
 java.lang.String toString()
          Returns the string for the bit field.
 
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

BitfieldSpecifier

public BitfieldSpecifier(Expression e)
Constructs a bit field specifier from the given bit expression.

Method Detail

print

public void print(java.io.OutputStream stream)
Prints the specifier to the output stream.

Specified by:
print in interface Printable
Overrides:
print in class Specifier
Parameters:
stream - the output stream.

toString

public java.lang.String toString()
Returns the string for the bit field.

Overrides:
toString in class Specifier
Returns:
the string.