Class MoreTypes
java.lang.Object
org.immutables.value.processor.meta.MoreTypes
Static util methods related to
TypeMirror-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static final classprivate static final classprivate static final classprivate static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayTypeasArray(TypeMirror maybeArrayType) Returns aArrayTypeif theTypeMirrorrepresents a primitive array or throws anIllegalArgumentException.static DeclaredTypeasDeclared(TypeMirror maybeDeclaredType) Returns aDeclaredTypeif theTypeMirrorrepresents a declared type such as a class, interface, union/compound, or enum or throws anIllegalArgumentException.static ExecutableTypeasExecutable(TypeMirror maybeExecutableType) Returns aExecutableTypeif theTypeMirrorrepresents an executable type such as a method, constructor, or initializer or throws anIllegalArgumentException.static PrimitiveTypeasPrimitiveType(TypeMirror maybePrimitiveType) Returns aPrimitiveTypeif theTypeMirrorrepresents a primitive type or throws anIllegalArgumentException.
-
Constructor Details
-
MoreTypes
public MoreTypes()
-
-
Method Details
-
asExecutable
Returns aExecutableTypeif theTypeMirrorrepresents an executable type such as a method, constructor, or initializer or throws anIllegalArgumentException. -
asArray
Returns aArrayTypeif theTypeMirrorrepresents a primitive array or throws anIllegalArgumentException. -
asDeclared
Returns aDeclaredTypeif theTypeMirrorrepresents a declared type such as a class, interface, union/compound, or enum or throws anIllegalArgumentException. -
asPrimitiveType
Returns aPrimitiveTypeif theTypeMirrorrepresents a primitive type or throws anIllegalArgumentException.
-