T - Type for this reference target typepublic abstract class TypeReference<T extends Type> extends Object implements Type
resolve()
method is invoked. The main benefit of using a type reference instead of
direct pointer to the other type, is that the reference is resolved lazily
and thus is not affected by bootstrapping circular dependencies and who gets
loaded first.| Constructor and Description |
|---|
TypeReference() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TypeVisitor visitor)
Accepts a type visitor and dispatches to the appropriate visitor method,
depending on class of the individual type.
|
abstract T |
resolve()
Resolves the reference.
|
public void accept(TypeVisitor visitor)
Typepublic abstract T resolve()
Copyright © 2022. All rights reserved.