-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathType.java
More file actions
31 lines (23 loc) · 983 Bytes
/
Type.java
File metadata and controls
31 lines (23 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package edu.rice.cs.drjava.model.repl.types;
/** Class Type, a component of the ASTGen-generated composite hierarchy.
* Note: null is not allowed as a value for any field.
* @version Generated automatically by ASTGen at Thu Oct 16 08:57:12 CDT 2014
*/
////@SuppressWarnings("unused")
public abstract class Type extends java.lang.Object {
/** Constructs a Type.
* @throws java.lang.IllegalArgumentException If any parameter to the constructor is null.
*/
public Type() { super(); }
public abstract <RetType> RetType apply(TypeVisitor<RetType> visitor);
public abstract void apply(TypeVisitor_void visitor);
public abstract void output(java.io.Writer writer);
private int _hashCode;
private boolean _hasHashCode = false;
public final int hashCode() {
if (! _hasHashCode) { _hashCode = generateHashCode(); _hasHashCode = true; }
return _hashCode;
}
public abstract int generateHashCode();
public abstract void walk(TreeWalker w);
}