mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6949587: rename "DisjointType" to "DisjunctType"
Reviewed-by: mcimadamore
This commit is contained in:
parent
35cc8afcf9
commit
efaaa59c32
17 changed files with 48 additions and 48 deletions
|
@ -28,13 +28,13 @@ package com.sun.source.tree;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A tree node for a disjoint type expression in a multicatch var declaration.
|
||||
* A tree node for a disjunctive type expression in a multicatch var declaration.
|
||||
*
|
||||
*
|
||||
* @author Maurizio Cimadamore
|
||||
*
|
||||
* @since 1.7
|
||||
*/
|
||||
public interface DisjointTypeTree extends Tree {
|
||||
List<? extends Tree> getTypeComponents();
|
||||
public interface DisjunctiveTypeTree extends Tree {
|
||||
List<? extends Tree> getTypeAlternatives();
|
||||
}
|
|
@ -234,9 +234,9 @@ public interface Tree {
|
|||
PARAMETERIZED_TYPE(ParameterizedTypeTree.class),
|
||||
|
||||
/**
|
||||
* Used for instances of {@link DisjointTypeTree}.
|
||||
* Used for instances of {@link DisjunctiveTypeTree}.
|
||||
*/
|
||||
DISJOINT_TYPE(DisjointTypeTree.class),
|
||||
DISJUNCTIVE_TYPE(DisjunctiveTypeTree.class),
|
||||
|
||||
/**
|
||||
* Used for instances of {@link TypeCastTree}.
|
||||
|
|
|
@ -96,7 +96,7 @@ public interface TreeVisitor<R,P> {
|
|||
R visitCompilationUnit(CompilationUnitTree node, P p);
|
||||
R visitTry(TryTree node, P p);
|
||||
R visitParameterizedType(ParameterizedTypeTree node, P p);
|
||||
R visitDisjointType(DisjointTypeTree node, P p);
|
||||
R visitDisjunctiveType(DisjunctiveTypeTree node, P p);
|
||||
R visitArrayType(ArrayTypeTree node, P p);
|
||||
R visitTypeCast(TypeCastTree node, P p);
|
||||
R visitPrimitiveType(PrimitiveTypeTree node, P p);
|
||||
|
|
|
@ -228,7 +228,7 @@ public class SimpleTreeVisitor <R,P> implements TreeVisitor<R,P> {
|
|||
return defaultAction(node, p);
|
||||
}
|
||||
|
||||
public R visitDisjointType(DisjointTypeTree node, P p) {
|
||||
public R visitDisjunctiveType(DisjunctiveTypeTree node, P p) {
|
||||
return defaultAction(node, p);
|
||||
}
|
||||
|
||||
|
|
|
@ -356,8 +356,8 @@ public class TreeScanner<R,P> implements TreeVisitor<R,P> {
|
|||
return r;
|
||||
}
|
||||
|
||||
public R visitDisjointType(DisjointTypeTree node, P p) {
|
||||
return scan(node.getTypeComponents(), p);
|
||||
public R visitDisjunctiveType(DisjunctiveTypeTree node, P p) {
|
||||
return scan(node.getTypeAlternatives(), p);
|
||||
}
|
||||
|
||||
public R visitTypeParameter(TypeParameterTree node, P p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue