Package org.ek9lang.compiler.phase3
Class IsConvertableToStringOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase3.IsConvertableToStringOrError
- All Implemented Interfaces:
BiPredicate<IToken,
ISymbol>
Checks if a type has the $ 'toString' method or a 'promotion' #? to a String method.
If not emits and error. Or it must be the String type itself.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionIsConvertableToStringOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
IsConvertableToStringOrError
IsConvertableToStringOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access.
-
-
Method Details
-
test
- Specified by:
test
in interfaceBiPredicate<IToken,
ISymbol>
-