Package ch.raffael.meldioc.model
Interface Adaptor<S,T>
public interface Adaptor<S,T>
The adaptor to the underlying AST (
javax.lang.model, PSI).-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAdaptor.SuperType<T> -
Method Summary
Modifier and Type Method Description ch.raffael.meldioc.model.SrcElement<S,T>classElement(T type)Returns aSrcElementfor the given type.TcollectionOf(T componentType)Returns the type of aCollectionwith the given component type.TcomponentTypeOfIterable(T iterableType)Returns the component type of a givenIterableor some NoType, if the given type is not anIterable.io.vavr.collection.Seq<ch.raffael.meldioc.model.SrcElement<S,T>>constructors(T type)Returns all constructors in the given type.io.vavr.collection.Seq<ch.raffael.meldioc.model.SrcElement<S,T>>declaredMethods(T type)Returns all methods declared in the given type.booleanhasTypeParameters(T type)True, if the given type has type parameters.booleanisAnnotationType(T type)True, if the type is an annotation type.booleanisEnumType(T type)True, if the type is an enum type.booleanisInterface(T type)True, if the given type is an interface.default booleanisNoType(T type)True, if the type is a pseudo-type (void, error).booleanisPrimitive(T type)True, if the type represents a primitive type (voidis not treated as type).booleanisRecordType(T type)True, if the type is a record type.booleanisReference(T type)True, if the type represents a reference type.booleanisSubtypeOf(T left, T right)True, if left is a subtype of right.TiterableOf(T componentType)Returns the type of anIterablewith the given component type.TlistOf(T componentType)Returns the type of aListwith the given component type.TnoType()Returns the no type.java.lang.StringpackageOf(ch.raffael.meldioc.model.SrcElement<S,T> element)Returns the package name of the given element.io.vavr.collection.Seq<Adaptor.SuperType<T>>superTypes(T type)Returns the super types of the given types.TtypeOf(ch.raffael.meldioc.model.ClassRef ref)Returns a type or a (NoTypeif not found.
-
Method Details
-
isSubtypeOf
True, if left is a subtype of right. Primitives are only subtypes of themselves. -
isReference
True, if the type represents a reference type. -
hasTypeParameters
True, if the given type has type parameters. -
isInterface
True, if the given type is an interface. -
isPrimitive
True, if the type represents a primitive type (voidis not treated as type). -
isNoType
True, if the type is a pseudo-type (void, error). -
isEnumType
True, if the type is an enum type. -
isAnnotationType
True, if the type is an annotation type. -
isRecordType
True, if the type is a record type. -
typeOf
Returns a type or a (NoTypeif not found. -
classElement
Returns aSrcElementfor the given type. -
superTypes
Returns the super types of the given types. -
declaredMethods
Returns all methods declared in the given type. This does not include inherited methods, but it does include overridden methods. -
constructors
Returns all constructors in the given type. -
packageOf
Returns the package name of the given element. -
iterableOf
Returns the type of anIterablewith the given component type. -
collectionOf
Returns the type of aCollectionwith the given component type. -
listOf
Returns the type of aListwith the given component type. -
componentTypeOfIterable
Returns the component type of a givenIterableor some NoType, if the given type is not anIterable. -
noType
T noType()Returns the no type.
-