Class MoreTypes
- java.lang.Object
-
- org.immutables.value.processor.meta.MoreTypes
-
public class MoreTypes extends java.lang.ObjectStatic util methods related toTypeMirror
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classMoreTypes.AbstractVisitor<T>private static classMoreTypes.ArrayTypeVisitorprivate static classMoreTypes.DeclaredTypeVisitorprivate static classMoreTypes.ExecutableTypeVisitorprivate static classMoreTypes.PrimitiveTypeVisitor
-
Constructor Summary
Constructors Constructor Description MoreTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.lang.model.type.ArrayTypeasArray(javax.lang.model.type.TypeMirror maybeArrayType)Returns aArrayTypeif theTypeMirrorrepresents a primitive array or throws anIllegalArgumentException.static javax.lang.model.type.DeclaredTypeasDeclared(javax.lang.model.type.TypeMirror maybeDeclaredType)Returns aDeclaredTypeif theTypeMirrorrepresents a declared type such as a class, interface, union/compound, or enum or throws anIllegalArgumentException.static javax.lang.model.type.ExecutableTypeasExecutable(javax.lang.model.type.TypeMirror maybeExecutableType)Returns aExecutableTypeif theTypeMirrorrepresents an executable type such as a method, constructor, or initializer or throws anIllegalArgumentException.static javax.lang.model.type.PrimitiveTypeasPrimitiveType(javax.lang.model.type.TypeMirror maybePrimitiveType)Returns aPrimitiveTypeif theTypeMirrorrepresents a primitive type or throws anIllegalArgumentException.
-
-
-
Method Detail
-
asExecutable
public static javax.lang.model.type.ExecutableType asExecutable(javax.lang.model.type.TypeMirror maybeExecutableType)
Returns aExecutableTypeif theTypeMirrorrepresents an executable type such as a method, constructor, or initializer or throws anIllegalArgumentException.
-
asArray
public static javax.lang.model.type.ArrayType asArray(javax.lang.model.type.TypeMirror maybeArrayType)
Returns aArrayTypeif theTypeMirrorrepresents a primitive array or throws anIllegalArgumentException.
-
asDeclared
public static javax.lang.model.type.DeclaredType asDeclared(javax.lang.model.type.TypeMirror maybeDeclaredType)
Returns aDeclaredTypeif theTypeMirrorrepresents a declared type such as a class, interface, union/compound, or enum or throws anIllegalArgumentException.
-
asPrimitiveType
public static javax.lang.model.type.PrimitiveType asPrimitiveType(javax.lang.model.type.TypeMirror maybePrimitiveType)
Returns aPrimitiveTypeif theTypeMirrorrepresents a primitive type or throws anIllegalArgumentException.
-
-