public static final class Java.ReferenceType extends Java.Type implements Java.TypeArgument
| Modifier and Type | Field and Description |
|---|---|
Java.Annotation[] |
annotations
The "type annotations" of this type, see JLS9, 9.7.4.
|
String[] |
identifiers
The list of (dot-separated) identifiers that pose the reference type, e.g.
|
Java.TypeArgument[] |
typeArguments
The optional type arguments of the reference type.
|
NOWHERE| Constructor and Description |
|---|
ReferenceType(Location location,
Java.Annotation[] annotations,
String[] identifiers,
Java.TypeArgument[] typeArguments) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.AtomVisitor<R,EX> visitor)
|
<R,EX extends Throwable> |
accept(Visitor.TypeArgumentVisitor<R,EX> visitor)
Invokes the "
visit...()" method of Visitor.TypeArgumentVisitor for the concrete Java.TypeArgument type. |
<R,EX extends Throwable> |
accept(Visitor.TypeVisitor<R,EX> visitor)
|
void |
setEnclosingScope(Java.Scope enclosingScope)
Sets the enclosing scope for this object and all subordinate
Java.Type objects. |
String |
toString() |
getEnclosingScope, toTypetoLvalue, toLvalueOrCompileException, toRvalue, toRvalueOrCompileException, toTypeOrCompileExceptiongetLocation, throwCompileExceptionpublic final Java.Annotation[] annotations
public final String[] identifiers
@Nullable public final Java.TypeArgument[] typeArguments
public ReferenceType(Location location, Java.Annotation[] annotations, String[] identifiers, @Nullable Java.TypeArgument[] typeArguments)
public void setEnclosingScope(Java.Scope enclosingScope)
Java.TypeJava.Type objects.setEnclosingScope in interface Java.TypeArgumentsetEnclosingScope in class Java.Type@Nullable public <R,EX extends Throwable> R accept(Visitor.AtomVisitor<R,EX> visitor) throws EX extends Throwable
Java.Atom@Nullable public <R,EX extends Throwable> R accept(Visitor.TypeVisitor<R,EX> visitor) throws EX extends Throwable
Java.Type@Nullable public <R,EX extends Throwable> R accept(Visitor.TypeArgumentVisitor<R,EX> visitor) throws EX extends Throwable
Java.TypeArgumentvisit...()" method of Visitor.TypeArgumentVisitor for the concrete Java.TypeArgument type.accept in interface Java.TypeArgumentEX extends ThrowableCopyright © 2022. All rights reserved.