Class SymbolRetyping
java.lang.Object
org.ek9lang.compiler.support.SymbolRetyping
- All Implemented Interfaces:
BiConsumer<ISymbol, UnaryOperator<ISymbol>>
public final class SymbolRetyping
extends Object
implements BiConsumer<ISymbol, UnaryOperator<ISymbol>>
THE re-typing of a single symbol, in place, when it has a type: its type becomes the replacement's answer for it.
The per-symbol step of
ClonedMemberRetyping, used on its own where one symbol is re-typed rather than a set
of cloned members.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymbol value, UnaryOperator<ISymbol> replacement) Re-type a single symbol, in place, when it has a type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
SymbolRetyping
public SymbolRetyping()
-
-
Method Details
-
accept
Re-type a single symbol, in place, when it has a type.- Specified by:
acceptin interfaceBiConsumer<ISymbol, UnaryOperator<ISymbol>>
-