lab8
Class TypeBridge

java.lang.Object
  extended by lab8.TypeBridge
All Implemented Interfaces:
Type, TypeAttrs
Direct Known Subclasses:
ConstructorType, PrimType, RefType

public abstract class TypeBridge
extends java.lang.Object
implements TypeAttrs

This class bridges the generic Type interface from the parser to actual types used in semantic analysis. Because this class implements TypeAttrs, it is also a hw3.Type.


Constructor Summary
TypeBridge()
           
 
Method Summary
abstract  java.lang.String getTypeString()
          A type string suitable for the JVM.
abstract  boolean isPrimitive()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeBridge

public TypeBridge()
Method Detail

isPrimitive

public abstract boolean isPrimitive()

getTypeString

public abstract java.lang.String getTypeString()
A type string suitable for the JVM.

Specified by:
getTypeString in interface TypeAttrs

toString

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