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.Object
Clients of theSynonymTypesProvider
may 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 boolean
accept(LightweightTypeReference synonym, int flags)
protected boolean
accept(LightweightTypeReference synonym, java.util.EnumSet<ConformanceHint> hints)
protected boolean
accept(LightweightTypeReference synonym, ConformanceHint hint)
protected java.util.EnumSet<ConformanceHint>
fromFlags(int flags)
Converts flag bits to type safe hints.protected int
toFlags(java.util.EnumSet<ConformanceHint> hints)
Converts hints to flag bits.
-
-
-
Method Detail
-
accept
protected final boolean accept(LightweightTypeReference synonym, ConformanceHint hint)
- Returns:
true
if the client is interested in more synonyms.false
to skip further computation.
-
accept
protected final boolean accept(LightweightTypeReference synonym, java.util.EnumSet<ConformanceHint> hints)
- Returns:
true
if the client is interested in more synonyms.false
to 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:
true
if the client is interested in more synonyms.false
to skip further computation.- See Also:
ConformanceFlags
-
-