| Package | Description |
|---|---|
| jasm.io |
Provides classes for reading/writing class files and Jasm files.
|
| jasm.lang |
Provides core class for representing JVM class files, bytecodes, types and constants.
|
| Modifier and Type | Method and Description |
|---|---|
protected Triple<List<JvmType.Reference>,JvmType.Clazz,List<JvmType.Clazz>> |
ClassFileReader.parseClassSigDesc(String descriptor)
The class signature provides information about the generic type
parameters declared for a class.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
JvmType.Array
The Array type captures array types! The elementType gives the types of
the elements held in the array.
|
static class |
JvmType.Clazz
This represents a reference to a class.
|
static class |
JvmType.Intersection
An intersection type represents a (unknown) type which known to be a
subtype of several types.
|
static class |
JvmType.Null
The Null type is a special type given to the null value.
|
static class |
JvmType.Variable
Represents a Generic type variable.
|
static class |
JvmType.Wildcard
This represents the special "?" type.
|
| Modifier and Type | Field and Description |
|---|---|
JvmType.Reference |
Bytecode.Invoke.owner |
JvmType.Reference |
Bytecode.InstanceOf.type |
| Modifier and Type | Method and Description |
|---|---|
JvmType.Reference |
JvmType.Wildcard.lowerBound()
Return the lower bound of this wildcard.
|
JvmType.Reference |
JvmType.Variable.lowerBound() |
static JvmType.Reference |
JvmTypes.substitute(JvmType.Reference type,
Map<String,JvmType.Reference> binding)
This method accepts a binding from type variables to concrete types, and
then substitutes each such variable occuring in the target type with its
corresponding instantation.
|
JvmType.Reference |
JvmType.Wildcard.upperBound()
Return the upper bound of this wildcard.
|
| Modifier and Type | Method and Description |
|---|---|
List<JvmType.Reference> |
JvmType.Intersection.bounds() |
List<Pair<String,List<JvmType.Reference>>> |
JvmType.Clazz.components() |
Pair<String,List<JvmType.Reference>> |
JvmType.Clazz.lastComponent() |
| Modifier and Type | Method and Description |
|---|---|
static Constant.Class |
Constant.buildClass(JvmType.Reference type)
This method creates a CONSTANT_Class object from a Type Reference
|
static Constant.InterfaceMethodRef |
Constant.buildInterfaceMethodRef(JvmType.Reference owner,
String name,
JvmType type)
Creates a CONSTANT_InterfaceMethodRef object.
|
static Constant.MethodRef |
Constant.buildMethodRef(JvmType.Reference owner,
String name,
JvmType type)
Creates a CONSTANT_MethodRef object.
|
static JvmType.Reference |
JvmTypes.substitute(JvmType.Reference type,
Map<String,JvmType.Reference> binding)
This method accepts a binding from type variables to concrete types, and
then substitutes each such variable occuring in the target type with its
corresponding instantation.
|
| Modifier and Type | Method and Description |
|---|---|
static JvmType.Function |
JvmTypes.substitute(JvmType.Function type,
Map<String,JvmType.Reference> binding)
This method accepts a binding from type variables to concrete types, and
then substitutes each such variable occuring in the target (function)
type with its corresponding instantation.
|
static JvmType.Reference |
JvmTypes.substitute(JvmType.Reference type,
Map<String,JvmType.Reference> binding)
This method accepts a binding from type variables to concrete types, and
then substitutes each such variable occuring in the target type with its
corresponding instantation.
|
| Constructor and Description |
|---|
InstanceOf(JvmType.Reference type) |
Invoke(JvmType.Reference owner,
String name,
JvmType.Function type,
Bytecode.InvokeMode mode) |
Variable(String variable,
JvmType.Reference lowerBound) |
Wildcard(JvmType.Reference lowerBound,
JvmType.Reference upperBound) |
| Constructor and Description |
|---|
Clazz(String pkg,
List<Pair<String,List<JvmType.Reference>>> components) |
Intersection(List<JvmType.Reference> bounds) |
Copyright © 2016. All rights reserved.