Class SynonymTypesProvider.Acceptor
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.computation.SynonymTypesProvider.Acceptor
-
- Enclosing class:
- SynonymTypesProvider
public abstract static class SynonymTypesProvider.Acceptor extends java.lang.ObjectClients of theSynonymTypesProvidermay use a custom acceptor to handle the available synonym types.
-
-
Constructor Summary
Constructors Constructor Description Acceptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleanaccept(LightweightTypeReference synonym, int flags)protected booleanaccept(LightweightTypeReference synonym, java.util.EnumSet<ConformanceHint> hints)protected booleanaccept(LightweightTypeReference synonym, ConformanceHint hint)protected java.util.EnumSet<ConformanceHint>fromFlags(int flags)Converts flag bits to type safe hints.protected inttoFlags(java.util.EnumSet<ConformanceHint> hints)Converts hints to flag bits.
-
-
-
Method Detail
-
accept
protected final boolean accept(LightweightTypeReference synonym, ConformanceHint hint)
- Returns:
trueif the client is interested in more synonyms.falseto skip further computation.
-
accept
protected final boolean accept(LightweightTypeReference synonym, java.util.EnumSet<ConformanceHint> hints)
- Returns:
trueif the client is interested in more synonyms.falseto skip further computation.
-
toFlags
protected int toFlags(java.util.EnumSet<ConformanceHint> hints)
Converts hints to flag bits.
-
fromFlags
protected java.util.EnumSet<ConformanceHint> fromFlags(int flags)
Converts flag bits to type safe hints.
-
accept
protected abstract boolean accept(LightweightTypeReference synonym, int flags)
- Returns:
trueif the client is interested in more synonyms.falseto skip further computation.- See Also:
ConformanceFlags
-
-