Class Adaptor

All Implemented Interfaces:
ch.raffael.meldioc.model.Adaptor<Element,TypeRef>, ch.raffael.meldioc.model.messages.MessageSink<Element,TypeRef>

public final class Adaptor extends Environment.WithEnv implements ch.raffael.meldioc.model.Adaptor<Element,TypeRef>, ch.raffael.meldioc.model.messages.MessageSink<Element,TypeRef>
  • Method Details

    • 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<Element,TypeRef>
    • isReference

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

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

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

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

      public boolean isEnumType(TypeRef type)
      Specified by:
      isEnumType in interface ch.raffael.meldioc.model.Adaptor<Element,TypeRef>
    • isAnnotationType

      public boolean isAnnotationType(TypeRef type)
      Specified by:
      isAnnotationType in interface ch.raffael.meldioc.model.Adaptor<Element,TypeRef>
    • isRecordType

      public boolean isRecordType(TypeRef type)
      Specified by:
      isRecordType in interface ch.raffael.meldioc.model.Adaptor<Element,TypeRef>
    • typeOf

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

      public ch.raffael.meldioc.model.SrcElement<Element,TypeRef> classElement(TypeRef type)
      Specified by:
      classElement in interface ch.raffael.meldioc.model.Adaptor<Element,TypeRef>
    • superTypes

      public io.vavr.collection.Seq<ch.raffael.meldioc.model.Adaptor.SuperType<TypeRef>> superTypes(TypeRef type)
      Specified by:
      superTypes in interface ch.raffael.meldioc.model.Adaptor<Element,TypeRef>
    • declaredMethods

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

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

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

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

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

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

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

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

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