Class Typ
java.lang.Object
org.vesalainen.bcc.model.Typ
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic PrimitiveTypestatic ArrayTypestatic PrimitiveTypestatic ArrayTypestatic PrimitiveTypestatic ArrayTypestatic PrimitiveTypestatic ArrayTypestatic PrimitiveTypestatic ArrayTypestatic PrimitiveTypestatic ArrayTypestatic PrimitiveTypestatic ArrayTypeprivate static final Typesstatic NoTypestatic NullTypestatic DeclaredTypestatic ArrayTypestatic TypeMirrorstatic PrimitiveTypestatic ArrayTypestatic DeclaredTypestatic ArrayTypeprivate static Typesstatic NoType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Elementstatic TypeMirrorasMemberOf(DeclaredType containing, Element element) static TypeElementstatic TypeMirrorstatic booleancontains(TypeMirror t1, TypeMirror t2) static ObjectReturns a Object of type type converted from constantstatic List<? extends TypeMirror> static TypeMirrorstatic ArrayTypegetArrayType(TypeMirror componentType) static DeclaredTypegetDeclaredType(TypeElement typeElem, TypeMirror... typeArgs) static DeclaredTypegetDeclaredType(DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs) static intgetIndexOf(List<? extends VariableElement> params, int ind) static StringgetInternalForm(TypeMirror type) static intgetMaxIndexOf(List<? extends VariableElement> params) static NoTypestatic NullTypestatic PrimitiveTypegetPrimitiveType(TypeKind kind) static TypeMirrorgetTypeFor(Class<?> cls) static TypeMirrorgetTypeFor(String type) static intgetTypeNumber(TypeKind kind) Returns TypeKind ordinal for primitive types and DECLARED ordinal for DECLARED, ARRAY and TYPEVARstatic WildcardTypegetWildcardType(TypeMirror extendsBound, TypeMirror superBound) static booleanisAssignable(TypeMirror t1, TypeMirror t2) static booleanisCategory2(TypeMirror type) static booleanisInteger(TypeMirror type) Returns true if type is one of int, short, char, byte or booleanstatic booleanisJavaConstant(Object value) static booleanisJavaConstantType(TypeMirror type) Returns true if type is one of int, long, float, double or java.lang.Stringstatic booleanisPrimitive(TypeMirror type) static booleanisSameType(TypeMirror t1, TypeMirror t2) static booleanstatic booleanisSubtype(TypeMirror t1, TypeMirror t2) static TypeMirrornormalizeType(TypeKind kind) Returns primitive type for primitive and java.lang.Object type for referencesprivate static TypeMirrorprivate static Stringstatic voidstatic TypeMirrortypeFromDescriptor(String descriptor) static TypeMirrortypeFromSignature(String string) static List<? extends TypeMirror> typesFromDescriptor(String descriptor) static PrimitiveType
-
Field Details
-
Null
-
Void
-
None
-
Byte
-
Boolean
-
Char
-
Short
-
Int
-
Long
-
Float
-
Double
-
ByteA
-
BooleanA
-
CharA
-
ShortA
-
IntA
-
LongA
-
FloatA
-
DoubleA
-
StringA
-
ObjectA
-
String
-
Object
-
ReturnAddress
-
myTypes
-
types
-
-
Constructor Details
-
Typ
public Typ()
-
-
Method Details
-
setTypes
-
getTypeNumber
Returns TypeKind ordinal for primitive types and DECLARED ordinal for DECLARED, ARRAY and TYPEVAR- Parameters:
kind-- Returns:
-
normalizeType
Returns primitive type for primitive and java.lang.Object type for references- Parameters:
kind-- Returns:
-
isJavaConstant
-
isPrimitive
-
getTypeFor
-
getTypeFor
-
getMaxIndexOf
-
getIndexOf
-
isCategory2
-
typeFromDescriptor
-
typesFromDescriptor
-
parseNext
-
parseObject
-
asElement
-
isSameType
-
isSubtype
-
isAssignable
-
contains
-
isSubsignature
-
directSupertypes
-
erasure
-
boxedClass
-
unboxedType
-
capture
-
getPrimitiveType
-
getNullType
-
getNoType
-
getArrayType
-
getWildcardType
-
getDeclaredType
-
getDeclaredType
public static DeclaredType getDeclaredType(DeclaredType containing, TypeElement typeElem, TypeMirror... typeArgs) -
asMemberOf
-
typeFromSignature
-
isInteger
Returns true if type is one of int, short, char, byte or boolean- Parameters:
type-- Returns:
-
isJavaConstantType
Returns true if type is one of int, long, float, double or java.lang.String- Parameters:
type-- Returns:
-
convert
-
getInternalForm
-