| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSemant.Type
Semant.Type.ARRAY
public static class Type.ARRAY
An array has an element type.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class Semant.Type | 
|---|
| Type.ARRAY, Type.CLASS, Type.FUN, Type.INSTANCE, Type.Print, Type.RECORD<T extends Type>, Type.Visitor | 
| Field Summary | |
|---|---|
|  Type | element | 
| Fields inherited from class Semant.Type | 
|---|
| BOOLEAN, INT, NIL, STRING, SYSTEM, VOID | 
| Constructor Summary | |
|---|---|
| Type.ARRAY(Type e)An array. | |
| Method Summary | |
|---|---|
|  void | accept(Type.Visitor v)A type must accept a visitor | 
|  boolean | coerceTo(Type t)Arrays coerce if their element types are equal. | 
|  boolean | equals(Type t)Arrays are equal if their element types are equal. | 
|  Type | field(java.lang.String n)Java arrays have one field "length". | 
|  java.lang.String | toString()A printable representation of this array type. | 
| Methods inherited from class Semant.Type | 
|---|
| method | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public final Type element
| Constructor Detail | 
|---|
public Type.ARRAY(Type e)
e - element type| Method Detail | 
|---|
public Type field(java.lang.String n)
field in class Typen - name of the field
public boolean coerceTo(Type t)
coerceTo in class Typet - target type
public boolean equals(Type t)
equals in class Typet - target type
public java.lang.String toString()
toString in class java.lang.Objectpublic void accept(Type.Visitor v)
Type
accept in class Typev - the visitor| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||