public class SymbolReference<S extends Declaration> extends Object
Modifier and Type | Method and Description |
---|---|
static <O extends Declaration> |
adapt(SymbolReference<? extends O> ref,
Class<O> clazz) |
S |
getCorrespondingDeclaration()
The corresponding declaration.
|
boolean |
isSolved()
Is the reference solved?
|
static <S extends Declaration,S2 extends S> |
solved(S2 symbolDeclaration)
Create a solve reference to the given symbol.
|
String |
toString() |
static <S extends Declaration,S2 extends S> |
unsolved(Class<S2> clazz)
Create an unsolved reference specifying the type of the value expected.
|
public static <S extends Declaration,S2 extends S> SymbolReference<S> solved(S2 symbolDeclaration)
public static <S extends Declaration,S2 extends S> SymbolReference<S> unsolved(Class<S2> clazz)
public S getCorrespondingDeclaration()
public boolean isSolved()
public static <O extends Declaration> SymbolReference<O> adapt(SymbolReference<? extends O> ref, Class<O> clazz)
Copyright © 2016. All rights reserved.