lab8
Class TypeBridge
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TypeBridge
public TypeBridge()
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