Class TypeUtils
java.lang.Object
io.micronaut.sourcegen.bytecode.TypeUtils
Internal bytecode type utils.
- Since:
- 1.5
- Author:
- Denis Stepanov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMethodDescriptor(@Nullable ObjectDef objectDef, MethodDef methodDef) The descriptor of a method outside the write of an inner class: no variables of an enclosing class are in scope.static StringgetMethodDescriptor(@Nullable ObjectDef objectDef, MethodDef methodDef, EnclosingScope enclosingScope) static org.objectweb.asm.TypegetScopedType(TypeDef typeDef, MethodContext context) The type of a value in a method body, erased in the scope of the method: a variable it declares shadows one of the class of the same name.static org.objectweb.asm.TypegetType(ClassTypeDef classTypeDef) static org.objectweb.asm.TypegetType(TypeDef.Primitive primitive) static org.objectweb.asm.TypeThe type of a type outside the write of an inner class: no variables of an enclosing class are in scope.static org.objectweb.asm.TypegetType(TypeDef typeDef, @Nullable ObjectDef objectDef, EnclosingScope enclosingScope) static org.objectweb.asm.Typestatic org.objectweb.asm.Type
-
Field Details
-
OBJECT_TYPE
public static final org.objectweb.asm.Type OBJECT_TYPE
-
-
Constructor Details
-
TypeUtils
public TypeUtils()
-
-
Method Details
-
getMethodDescriptor
-
getMethodDescriptor
public static String getMethodDescriptor(@Nullable ObjectDef objectDef, MethodDef methodDef, EnclosingScope enclosingScope) -
getScopedType
The type of a value in a method body, erased in the scope of the method: a variable it declares shadows one of the class of the same name.- Parameters:
typeDef- The typecontext- The method being written- Returns:
- The erased type
- Since:
- 2.3
-
getType
-
getType
public static org.objectweb.asm.Type getType(TypeDef typeDef, @Nullable ObjectDef objectDef, EnclosingScope enclosingScope) -
getType
-
getType
public static org.objectweb.asm.Type getType(String className, org.objectweb.asm.Type... genericTypes) -
getType
-
getType
-