Class Adaptor

  • All Implemented Interfaces:
    ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>, ch.raffael.meldioc.model.messages.MessageSink<javax.lang.model.element.Element,​TypeRef>

    public final class Adaptor
    extends Environment.WithEnv
    implements ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>, ch.raffael.meldioc.model.messages.MessageSink<javax.lang.model.element.Element,​TypeRef>
    • Method Detail

      • errorCount

        public int errorCount()
      • warningCount

        public int warningCount()
      • isSubtypeOf

        public boolean isSubtypeOf​(TypeRef left,
                                   TypeRef right)
        Specified by:
        isSubtypeOf in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • isReference

        public boolean isReference​(TypeRef type)
        Specified by:
        isReference in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • isInterface

        public boolean isInterface​(TypeRef type)
        Specified by:
        isInterface in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • hasTypeParameters

        public boolean hasTypeParameters​(TypeRef type)
        Specified by:
        hasTypeParameters in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • isPrimitive

        public boolean isPrimitive​(TypeRef type)
        Specified by:
        isPrimitive in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • isEnumType

        public boolean isEnumType​(TypeRef type)
        Specified by:
        isEnumType in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • typeOf

        public TypeRef typeOf​(ch.raffael.meldioc.model.ClassRef ref)
        Specified by:
        typeOf in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • classElement

        public ch.raffael.meldioc.model.CElement<javax.lang.model.element.Element,​TypeRef> classElement​(TypeRef type)
        Specified by:
        classElement in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • superTypes

        public io.vavr.collection.Seq<? extends TypeRef> superTypes​(TypeRef type)
        Specified by:
        superTypes in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • declaredMethods

        public io.vavr.collection.Seq<ch.raffael.meldioc.model.CElement<javax.lang.model.element.Element,​TypeRef>> declaredMethods​(TypeRef type)
        Specified by:
        declaredMethods in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • constructors

        public io.vavr.collection.Seq<ch.raffael.meldioc.model.CElement<javax.lang.model.element.Element,​TypeRef>> constructors​(TypeRef type)
        Specified by:
        constructors in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • packageOf

        public java.lang.String packageOf​(ch.raffael.meldioc.model.CElement<javax.lang.model.element.Element,​TypeRef> element)
        Specified by:
        packageOf in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • iterableOf

        public TypeRef iterableOf​(TypeRef componentType)
        Specified by:
        iterableOf in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • collectionOf

        public TypeRef collectionOf​(TypeRef componentType)
        Specified by:
        collectionOf in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • listOf

        public TypeRef listOf​(TypeRef componentType)
        Specified by:
        listOf in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • componentTypeOfIterable

        public TypeRef componentTypeOfIterable​(TypeRef iterableType)
        Specified by:
        componentTypeOfIterable in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • noType

        public TypeRef noType()
        Specified by:
        noType in interface ch.raffael.meldioc.model.Adaptor<javax.lang.model.element.Element,​TypeRef>
      • message

        public void message​(ch.raffael.meldioc.model.messages.Message<javax.lang.model.element.Element,​TypeRef> message)
        Specified by:
        message in interface ch.raffael.meldioc.model.messages.MessageSink<javax.lang.model.element.Element,​TypeRef>