-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathTypeVisitor.java
More file actions
71 lines (48 loc) · 2.21 KB
/
TypeVisitor.java
File metadata and controls
71 lines (48 loc) · 2.21 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package edu.rice.cs.drjava.model.repl.types;
import edu.rice.cs.drjava.model.repl.newjvm.*;
/** A parametric interface for visitors over Type that return a value. */
//@SuppressWarnings("unused")
public interface TypeVisitor<RetType> {
/** Process an instance of BooleanType. */
public RetType forBooleanType(BooleanType that);
/** Process an instance of CharType. */
public RetType forCharType(CharType that);
/** Process an instance of ByteType. */
public RetType forByteType(ByteType that);
/** Process an instance of ShortType. */
public RetType forShortType(ShortType that);
/** Process an instance of IntType. */
public RetType forIntType(IntType that);
/** Process an instance of LongType. */
public RetType forLongType(LongType that);
/** Process an instance of FloatType. */
public RetType forFloatType(FloatType that);
/** Process an instance of DoubleType. */
public RetType forDoubleType(DoubleType that);
/** Process an instance of NullType. */
public RetType forNullType(NullType that);
/** Process an instance of SimpleArrayType. */
public RetType forSimpleArrayType(SimpleArrayType that);
/** Process an instance of VarargArrayType. */
public RetType forVarargArrayType(VarargArrayType that);
/** Process an instance of SimpleClassType. */
public RetType forSimpleClassType(SimpleClassType that);
/** Process an instance of RawClassType. */
public RetType forRawClassType(RawClassType that);
/** Process an instance of ParameterizedClassType. */
public RetType forParameterizedClassType(ParameterizedClassType that);
/** Process an instance of IntersectionType. */
public RetType forIntersectionType(IntersectionType that);
/** Process an instance of UnionType. */
public RetType forUnionType(UnionType that);
/** Process an instance of VariableType. */
public RetType forVariableType(VariableType that);
/** Process an instance of TopType. */
public RetType forTopType(TopType that);
/** Process an instance of BottomType. */
public RetType forBottomType(BottomType that);
/** Process an instance of VoidType. */
public RetType forVoidType(VoidType that);
/** Process an instance of Wildcard. */
public RetType forWildcard(Wildcard that);
}