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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ch.raffael.meldioc.model.CElement<S,T>classElement(T type)Returns a Celement for 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.CElement<S,T>>constructors(T type)Returns all constructors in the given type.io.vavr.collection.Seq<ch.raffael.meldioc.model.CElement<S,T>>declaredMethods(T type)Returns all methods declared in the given type.booleanhasTypeParameters(T type)True, if the given type has type parameters.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).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.CElement<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 Detail
-
isSubtypeOf
boolean isSubtypeOf(T left, T right)
True, if left is a subtype of right. Primitives are only subtypes of themselves.
-
isReference
boolean isReference(T type)
True, if the type represents a reference type.
-
hasTypeParameters
boolean hasTypeParameters(T type)
True, if the given type has type parameters.
-
isInterface
boolean isInterface(T type)
True, if the given type is an interface.
-
isPrimitive
boolean isPrimitive(T type)
True, if the type represents a primitive type (voidis not treated as type).
-
isNoType
default boolean isNoType(T type)
True, if the type is a pseudo-type (void, error).
-
isEnumType
boolean isEnumType(T type)
True, if the type is an enum type.
-
classElement
ch.raffael.meldioc.model.CElement<S,T> classElement(T type)
Returns a Celement for the given type.
-
superTypes
io.vavr.collection.Seq<Adaptor.SuperType<T>> superTypes(T type)
Returns the super types of the given types.
-
declaredMethods
io.vavr.collection.Seq<ch.raffael.meldioc.model.CElement<S,T>> declaredMethods(T type)
Returns all methods declared in the given type. This does not include inherited methods, but it does include overridden methods.
-
constructors
io.vavr.collection.Seq<ch.raffael.meldioc.model.CElement<S,T>> constructors(T type)
Returns all constructors in the given type.
-
packageOf
java.lang.String packageOf(ch.raffael.meldioc.model.CElement<S,T> element)
Returns the package name of the given element.
-
iterableOf
T iterableOf(T componentType)
Returns the type of anIterablewith the given component type.
-
collectionOf
T collectionOf(T componentType)
Returns the type of aCollectionwith the given component type.
-
componentTypeOfIterable
T componentTypeOfIterable(T iterableType)
Returns the component type of a givenIterableor some NoType, if the given type is not anIterable.
-
noType
T noType()
Returns the no type.
-
-