Class SynonymTypesProvider.Acceptor

  • Enclosing class:
    SynonymTypesProvider

    public abstract static class SynonymTypesProvider.Acceptor
    extends java.lang.Object
    Clients of the SynonymTypesProvider may use a custom acceptor to handle the available synonym types.
    • Constructor Detail

      • Acceptor

        public Acceptor()
    • 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