mjc

org.multijava.mjc
Class CUniverseTypeAnnotation

java.lang.Object
  extended byorg.multijava.mjc.CUniverseTypeAnnotation

public class CUniverseTypeAnnotation
extends Object

This class represents a universe annotation for a type.

Author:
AHS

Field Summary
private  byte byteConstant
          The byte representation of the Universe.
 
Constructor Summary
CUniverseTypeAnnotation(byte byteConstant)
          Creates a new universe type annotation from a given byte.
 
Method Summary
 CUniverse getBaseUniverse()
          Return the universe of the base type (if this is an array).
 CUniverse getUniverse()
          Return the universe represented by this annotation.
 boolean isArrayType()
          Return whether this is an array annotation.
 String toString()
          Return a string representation of the annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

byteConstant

private byte byteConstant
The byte representation of the Universe.

Constructor Detail

CUniverseTypeAnnotation

public CUniverseTypeAnnotation(byte byteConstant)
Creates a new universe type annotation from a given byte.

Parameters:
byteConstant - a byte constant representing a universe annotation
Method Detail

isArrayType

public boolean isArrayType()
Return whether this is an array annotation.


getUniverse

public CUniverse getUniverse()
Return the universe represented by this annotation.


getBaseUniverse

public CUniverse getBaseUniverse()
Return the universe of the base type (if this is an array).


toString

public String toString()
Return a string representation of the annotation.

Overrides:
toString in class Object

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.