summaryrefslogtreecommitdiff
path: root/javax/lang/model/type/TypeVisitor.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/lang/model/type/TypeVisitor.java')
-rw-r--r--javax/lang/model/type/TypeVisitor.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/javax/lang/model/type/TypeVisitor.java b/javax/lang/model/type/TypeVisitor.java
index 3d2a327da..d8e553a28 100644
--- a/javax/lang/model/type/TypeVisitor.java
+++ b/javax/lang/model/type/TypeVisitor.java
@@ -1,5 +1,5 @@
/* TypeVisitor.java -- A visitor of types.
- Copyright (C) 2012 Free Software Foundation, Inc.
+ Copyright (C) 2012, 2013 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -185,4 +185,15 @@ public interface TypeVisitor<R,P>
*/
R visitWildcard(WildcardType type, P param);
+ /**
+ * Visits a union type.
+ *
+ * @param type the union type to visit.
+ * @param param the additional parameter, specific to the visitor.
+ * May be {@code null} if permitted by the visitor.
+ * @return the return value specific to the visitor.
+ * @since 1.7
+ */
+ R visitUnion(UnionType type, P param);
+
}