Class ValidPossibleGenericSymbolOrException
java.lang.Object
org.ek9lang.compiler.support.ValidPossibleGenericSymbolOrException
- All Implemented Interfaces:
Consumer<PossibleGenericSymbol>
public final class ValidPossibleGenericSymbolOrException
extends Object
implements Consumer<PossibleGenericSymbol>
Does a few checks on a PossibleGenericSymbol in terms of checking types and the generic type it is configured with.
At the moment untyped arguments and returns are consider a compiler error and an exception is thrown.
The reason for this, is that before a generic type can be parameterised it must have all its types known.
-
Constructor Details
-
ValidPossibleGenericSymbolOrException
public ValidPossibleGenericSymbolOrException()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<PossibleGenericSymbol>
-