Methods
Modifier and Type |
Method and Description |
static Map<String,ClassNode> |
addMethodGenerics(MethodNode current,
Map<String,ClassNode> oldSpec) |
static GenericsType[] |
alignGenericTypes(GenericsType[] redirectGenericTypes,
GenericsType[] parameterizedTypes,
GenericsType[] alignmentTarget)
Deprecated.
You shouldn't call this method because it is inherently unreliable
|
static GenericsType |
buildWildcardType(ClassNode... types)
Generates a wildcard generic type in order to be used for checks against class nodes.
|
static ClassNode |
correctToGenericsSpec(Map<String,ClassNode> genericsSpec,
ClassNode type) |
static ClassNode |
correctToGenericsSpec(Map<String,ClassNode> genericsSpec,
GenericsType type) |
static MethodNode |
correctToGenericsSpec(Map<String,ClassNode> genericsSpec,
MethodNode mn) |
static ClassNode |
correctToGenericsSpecRecurse(Map<String,ClassNode> genericsSpec,
ClassNode type) |
static ClassNode |
correctToGenericsSpecRecurse(Map<String,ClassNode> genericsSpec,
ClassNode type,
List<String> exclusions) |
static Map<String,ClassNode> |
createGenericsSpec(ClassNode current) |
static Map<String,ClassNode> |
createGenericsSpec(ClassNode current,
Map<String,ClassNode> oldSpec) |
static Map<String,GenericsType> |
extractPlaceholders(ClassNode cn) |
static void |
extractPlaceholders(ClassNode node,
Map<String,GenericsType> map)
For a given classnode, fills in the supplied map with the parameterized
types it defines.
|
static void |
extractSuperClassGenerics(ClassNode type,
ClassNode target,
Map<String,ClassNode> spec) |
static ClassNode |
makeClassSafe(Class klass) |
static ClassNode |
makeClassSafe0(ClassNode type,
GenericsType... genericTypes) |
static ClassNode |
makeClassSafeWithGenerics(Class klass,
ClassNode genericsType) |
static ClassNode |
makeClassSafeWithGenerics(ClassNode type,
GenericsType... genericTypes) |
static ClassNode |
newClass(ClassNode type) |
static ClassNode |
nonGeneric(ClassNode type) |
static ClassNode |
parameterizeInterfaceGenerics(ClassNode hint,
ClassNode target)
Deprecated.
Use #parameterizeType instead
|
static ClassNode |
parameterizeType(ClassNode hint,
ClassNode target)
|
static ClassNode[] |
parseClassNodesFromString(String option,
SourceUnit sourceUnit,
CompilationUnit compilationUnit,
MethodNode mn,
ASTNode usage) |