public abstract class ArgType
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ArgType.WildcardBound |
| Modifier and Type | Field and Description |
|---|---|
static ArgType |
BOOLEAN |
static ArgType |
BYTE |
static ArgType |
BYTE_BOOLEAN |
static ArgType |
CHAR |
static ArgType |
CLASS |
static ArgType |
DOUBLE |
static ArgType |
ENUM |
static ArgType |
EXCEPTION |
static ArgType |
FLOAT |
protected int |
hash |
static ArgType |
INT |
static ArgType |
INT_BOOLEAN |
static ArgType |
INT_FLOAT |
static ArgType |
LONG |
static ArgType |
NARROW |
static ArgType |
NARROW_INTEGRAL |
static ArgType |
NARROW_NUMBERS |
static ArgType |
NARROW_NUMBERS_NO_BOOL |
static ArgType |
NARROW_NUMBERS_NO_FLOAT |
static ArgType |
OBJECT |
static ArgType |
OBJECT_ARRAY |
static ArgType |
SHORT |
static ArgType |
STRING |
static ArgType |
THROWABLE |
static ArgType |
UNKNOWN |
static ArgType |
UNKNOWN_ARRAY |
static ArgType |
UNKNOWN_OBJECT |
static ArgType |
UNKNOWN_OBJECT_NO_ARRAY |
static ArgType |
VOID |
static ArgType |
WIDE |
static ArgType |
WILDCARD |
| Constructor and Description |
|---|
ArgType() |
| Modifier and Type | Method and Description |
|---|---|
static ArgType |
array(@NotNull ArgType vtype) |
static ArgType |
array(@NotNull ArgType type,
int dimension) |
boolean |
canBeAnyNumber() |
boolean |
canBeArray() |
boolean |
canBeObject() |
boolean |
canBePrimitive(PrimitiveType primitiveType) |
abstract boolean |
contains(PrimitiveType type) |
boolean |
containsGeneric() |
boolean |
containsTypeVariable() |
static ArgType |
convertFromPrimitiveType(PrimitiveType primitiveType) |
boolean |
equals(java.lang.Object obj) |
static ArgType |
generic(ArgType obj,
ArgType... generics) |
static ArgType |
generic(ArgType obj,
java.util.List<ArgType> generics) |
static ArgType |
generic(java.lang.String obj,
ArgType... generics) |
static ArgType |
generic(java.lang.String obj,
ArgType generic) |
static ArgType |
generic(java.lang.String obj,
java.util.List<ArgType> generics) |
static ArgType |
genericType(java.lang.String type) |
static ArgType |
genericType(java.lang.String type,
ArgType extendType) |
static ArgType |
genericType(java.lang.String type,
java.util.List<ArgType> extendTypes) |
int |
getArrayDimension() |
ArgType |
getArrayElement() |
ArgType |
getArrayRootElement() |
java.util.List<ArgType> |
getExtendTypes() |
java.util.List<ArgType> |
getGenericTypes() |
ArgType |
getInnerType() |
java.lang.String |
getObject() |
ArgType |
getOuterType() |
abstract PrimitiveType[] |
getPossibleTypes() |
PrimitiveType |
getPrimitiveType() |
int |
getRegCount() |
ArgType.WildcardBound |
getWildcardBound() |
ArgType |
getWildcardType() |
int |
hashCode() |
boolean |
isArray() |
static boolean |
isCastNeeded(RootNode root,
ArgType from,
ArgType to) |
static boolean |
isClsKnown(RootNode root,
ArgType cls) |
boolean |
isGeneric() |
boolean |
isGenericType() |
static boolean |
isInstanceOf(RootNode root,
ArgType type,
ArgType of) |
boolean |
isObject() |
boolean |
isPrimitive() |
boolean |
isTypeKnown() |
boolean |
isVoid() |
boolean |
isWildcard() |
static ArgType |
object(java.lang.String obj) |
static ArgType |
outerGeneric(ArgType genericOuterType,
ArgType innerType) |
static ArgType |
parse(char f) |
static ArgType |
parse(java.lang.String type) |
abstract ArgType |
selectFirst() |
void |
setExtendTypes(java.util.List<ArgType> extendTypes) |
java.lang.String |
toString() |
static ArgType |
tryToResolveClassAlias(RootNode root,
ArgType type) |
static java.util.List<ArgType> |
tryToResolveClassAlias(RootNode root,
java.util.List<ArgType> types) |
static ArgType |
unknown(PrimitiveType... types) |
<R> R |
visitTypes(java.util.function.Function<ArgType,R> visitor)
Recursively visit all subtypes of this type.
|
static ArgType |
wildcard() |
static ArgType |
wildcard(ArgType obj,
ArgType.WildcardBound bound) |
public static final ArgType INT
public static final ArgType BOOLEAN
public static final ArgType BYTE
public static final ArgType SHORT
public static final ArgType CHAR
public static final ArgType FLOAT
public static final ArgType DOUBLE
public static final ArgType LONG
public static final ArgType VOID
public static final ArgType OBJECT
public static final ArgType CLASS
public static final ArgType STRING
public static final ArgType ENUM
public static final ArgType THROWABLE
public static final ArgType EXCEPTION
public static final ArgType OBJECT_ARRAY
public static final ArgType WILDCARD
public static final ArgType UNKNOWN
public static final ArgType UNKNOWN_OBJECT
public static final ArgType UNKNOWN_OBJECT_NO_ARRAY
public static final ArgType UNKNOWN_ARRAY
public static final ArgType NARROW
public static final ArgType NARROW_NUMBERS
public static final ArgType NARROW_INTEGRAL
public static final ArgType NARROW_NUMBERS_NO_BOOL
public static final ArgType NARROW_NUMBERS_NO_FLOAT
public static final ArgType WIDE
public static final ArgType INT_FLOAT
public static final ArgType INT_BOOLEAN
public static final ArgType BYTE_BOOLEAN
protected int hash
public static ArgType object(java.lang.String obj)
public static ArgType genericType(java.lang.String type)
public static ArgType genericType(java.lang.String type, java.util.List<ArgType> extendTypes)
public static ArgType wildcard()
public static ArgType wildcard(ArgType obj, ArgType.WildcardBound bound)
public static ArgType unknown(PrimitiveType... types)
public boolean isTypeKnown()
public PrimitiveType getPrimitiveType()
public boolean isPrimitive()
public java.lang.String getObject()
public boolean isObject()
public boolean isGeneric()
public boolean isGenericType()
public java.util.List<ArgType> getGenericTypes()
public java.util.List<ArgType> getExtendTypes()
public void setExtendTypes(java.util.List<ArgType> extendTypes)
public ArgType getWildcardType()
public ArgType.WildcardBound getWildcardBound()
public boolean isWildcard()
public ArgType getOuterType()
public ArgType getInnerType()
public boolean isArray()
public int getArrayDimension()
public ArgType getArrayElement()
public ArgType getArrayRootElement()
public abstract boolean contains(PrimitiveType type)
public abstract ArgType selectFirst()
public abstract PrimitiveType[] getPossibleTypes()
public boolean canBeObject()
public boolean canBeArray()
public boolean canBePrimitive(PrimitiveType primitiveType)
public boolean canBeAnyNumber()
public static ArgType convertFromPrimitiveType(PrimitiveType primitiveType)
public static ArgType parse(java.lang.String type)
public static ArgType parse(char f)
public int getRegCount()
public boolean containsGeneric()
public boolean containsTypeVariable()
public boolean isVoid()
@Nullable public <R> R visitTypes(java.util.function.Function<ArgType,R> visitor)
public static java.util.List<ArgType> tryToResolveClassAlias(RootNode root, java.util.List<ArgType> types)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object