Uses of Interface
jasm.lang.JvmType

Packages that use JvmType
jasm.attributes Provides classes for representing class file attributes, including code necessary for encoding and decoding them. 
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. 
jasm.verifier Provides classes for verifying that a given class file is valid with respect to the JVM Specification (e.g. 
 

Uses of JvmType in jasm.attributes
 

Fields in jasm.attributes declared as JvmType
 JvmType[] StackMapTable.Frame.types
          The array of types for this frame.
 

Constructors in jasm.attributes with parameters of type JvmType
StackMapTable.Frame(int numLocals, int numStackItems, JvmType[] types)
           
 

Uses of JvmType in jasm.io
 

Methods in jasm.io that return JvmType
protected  JvmType ClassFileReader.decodeInstructionType(int offset)
           
 JvmType ClassFileReader.getConstantType(int index)
          Get the type of the constant value from this classfile's constant pool.
static JvmType ClassFileReader.parseDescriptor(java.lang.String descriptor)
          This method parses a general type descriptor.
static JvmType JasmFileReader.parseType(char c)
           
 

Methods in jasm.io that return types with arguments of type JvmType
protected  Triple<JvmType.Clazz,java.lang.String,JvmType> ClassFileReader.decodeInstructionOwnerNameType(int offset, int line)
           
static Pair<JvmType,java.lang.Integer> ClassFileReader.parseInternalDescriptor(java.lang.String descriptor, int pos)
           
 

Methods in jasm.io with parameters of type JvmType
protected  void JasmFileWriter.writeTypeWithoutBounds(JvmType t)
           
 

Uses of JvmType in jasm.lang
 

Subinterfaces of JvmType in jasm.lang
static interface JvmType.Primitive
          The Primitive type abstracts all the primitive types.
static interface JvmType.Reference
          The Reference type abstracts all the reference types, including class types, array types, variable and wildcard types.
 

Classes in jasm.lang that implement JvmType
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.Bool
          Represents the Java type "boolean"
static class JvmType.Byte
          Represents the Java type "byte"
static class JvmType.Char
          Represents the Java type "char"
static class JvmType.Clazz
          This represents a reference to a class.
static class JvmType.Double
          Represents the Java type "double"
static class JvmType.Float
          Represents the Java type "float"
static class JvmType.Function
          Represents the type of a method.
static class JvmType.Int
          Represents the Java type "int"
static class JvmType.Intersection
          An intersection type represents a (unknown) type which known to be a subtype of several types.
static class JvmType.Long
          Represents the Java type "long"
static class JvmType.Null
          The Null type is a special type given to the null value.
static class JvmType.Short
          Represents the Java type "short"
static class JvmType.Variable
          Represents a Generic type variable.
static class JvmType.Void
          The Void type is used to represent "void" types, found in method declarations.
static class JvmType.Wildcard
          This represents the special "?" type.
 

Fields in jasm.lang declared as JvmType
protected  JvmType ClassFile.Field.type
           
 JvmType Bytecode.Store.type
           
 JvmType Bytecode.Load.type
           
 JvmType Bytecode.Return.type
           
 JvmType Bytecode.Neg.type
           
 JvmType Bytecode.BinOp.type
           
 JvmType Bytecode.PutField.type
           
 JvmType Bytecode.GetField.type
           
 JvmType Bytecode.Cmp.type
           
 JvmType Bytecode.IfCmp.type
           
 JvmType Bytecode.Pop.type
           
 JvmType Bytecode.Dup.type
           
 JvmType Bytecode.New.type
           
 JvmType Bytecode.CheckCast.type
           
 

Methods in jasm.lang that return JvmType
 JvmType JvmType.Array.element()
           
 JvmType JvmType.Function.returnType()
           
static JvmType JvmTypes.stripGenerics(JvmType.Variable vt)
           
static JvmType JvmTypes.stripGenerics(JvmType.Wildcard wt)
           
static JvmType JvmTypes.stripGenerics(JvmType t)
          The purpose of this method is to strip the generic information from a type.
 JvmType ClassFile.Field.type()
           
 

Methods in jasm.lang that return types with arguments of type JvmType
 java.util.List<JvmType> JvmType.Function.parameterTypes()
           
 

Methods in jasm.lang with parameters of type JvmType
static int JvmTypes.arrayDepth(JvmType t)
          Return the depth of array nesting.
static Constant.FieldRef Constant.buildFieldRef(JvmType.Clazz owner, java.lang.String name, JvmType type)
          Creates a CONSTANT_FieldRef object.
static Constant.InterfaceMethodRef Constant.buildInterfaceMethodRef(JvmType.Clazz owner, java.lang.String name, JvmType type)
          Creates a CONSTANT_InterfaceMethodRef object.
static Constant.MethodRef Constant.buildMethodRef(JvmType.Clazz owner, java.lang.String name, JvmType type)
          Creates a CONSTANT_MethodRef object.
 int JvmType.Null.compareTo(JvmType t)
           
 int JvmType.Void.compareTo(JvmType t)
           
 int JvmType.Bool.compareTo(JvmType t)
           
 int JvmType.Byte.compareTo(JvmType t)
           
 int JvmType.Char.compareTo(JvmType t)
           
 int JvmType.Short.compareTo(JvmType t)
           
 int JvmType.Int.compareTo(JvmType t)
           
 int JvmType.Long.compareTo(JvmType t)
           
 int JvmType.Float.compareTo(JvmType t)
           
 int JvmType.Double.compareTo(JvmType t)
           
 int JvmType.Array.compareTo(JvmType t)
           
 int JvmType.Clazz.compareTo(JvmType t)
           
 int JvmType.Wildcard.compareTo(JvmType t)
           
 int JvmType.Variable.compareTo(JvmType t)
           
 int JvmType.Intersection.compareTo(JvmType t)
           
 int JvmType.Function.compareTo(JvmType t)
           
static java.lang.String ClassFile.descriptor(JvmType t, boolean generic)
          This method returns a JVM descriptor string for the type in question.
static boolean JvmTypes.isBoxedType(JvmType t)
          Determine whether or not the given type is a wrapper for a primitive type.
static boolean JvmTypes.isBoxedTypeOf(JvmType t, java.lang.String wrapper)
          Determine whether or not the given type is a wrapper for a primitive type.
static boolean JvmTypes.isClass(java.lang.String pkg, java.lang.String clazz, JvmType t)
           
static boolean JvmTypes.isGeneric(JvmType t)
           
static boolean JvmTypes.isGenericArray(JvmType t)
           
static boolean JvmTypes.isJavaLangObject(JvmType t)
          Check wither a given type is a reference to java.lang.Object or not.
static boolean JvmTypes.isJavaLangString(JvmType t)
          Check wither a given type is a reference to java.lang.String or not.
 void ClassFile.Field.setType(JvmType t)
           
static int ClassFile.slotSize(JvmType type)
          Determine the slot size for the corresponding Java type.
static JvmType JvmTypes.stripGenerics(JvmType t)
          The purpose of this method is to strip the generic information from a type.
 

Constructors in jasm.lang with parameters of type JvmType
Bytecode.BinOp(int op, JvmType type)
           
Bytecode.CheckCast(JvmType type)
          Check a reference on the stack has the given type.
Bytecode.Cmp(JvmType type, int op)
          Construct a cmp bytecode.
Bytecode.Dup(JvmType type)
           
Bytecode.GetField(JvmType.Clazz owner, java.lang.String name, JvmType type, Bytecode.FieldMode mode)
           
Bytecode.IfCmp(int cond, JvmType type, java.lang.String label)
           
Bytecode.IfCmp(int cond, JvmType type, java.lang.String label, boolean islong)
           
Bytecode.Load(int slot, JvmType type)
           
Bytecode.Neg(JvmType type)
           
Bytecode.New(JvmType type)
           
Bytecode.New(JvmType type, int dims)
           
Bytecode.Pop(JvmType type)
           
Bytecode.PutField(JvmType.Clazz owner, java.lang.String name, JvmType type, Bytecode.FieldMode mode)
           
Bytecode.Return(JvmType type)
           
Bytecode.Store(int slot, JvmType type)
           
ClassFile.Field(java.lang.String name, JvmType type, java.util.List<Modifier> modifiers)
           
JvmType.Array(JvmType element)
           
JvmType.Function(JvmType returnType, JvmType... parameters)
           
JvmType.Function(JvmType returnType, JvmType... parameters)
           
JvmType.Function(JvmType returnType, java.util.List<JvmType> parameters)
           
JvmType.Function(JvmType returnType, java.util.List<JvmType> parameters, java.util.List<JvmType.Variable> typeArgs)
           
 

Constructor parameters in jasm.lang with type arguments of type JvmType
JvmType.Function(JvmType returnType, java.util.List<JvmType> parameters)
           
JvmType.Function(JvmType returnType, java.util.List<JvmType> parameters, java.util.List<JvmType.Variable> typeArgs)
           
 

Uses of JvmType in jasm.verifier
 

Methods in jasm.verifier that return JvmType
 JvmType TypeAnalysis.Store.get(int index)
           
protected  JvmType TypeAnalysis.join(JvmType t1, JvmType t2)
           
 JvmType TypeAnalysis.Store.pop()
           
 JvmType TypeAnalysis.Store.top()
           
 

Methods in jasm.verifier with parameters of type JvmType
protected  void TypeAnalysis.checkIsSubtype(JvmType t1, JvmType t2, int index, TypeAnalysis.Store store)
          Check t1 is a supertype of t2 (i.e.
protected  boolean TypeAnalysis.isSubtype(JvmType t1, JvmType t2)
          Determine whether t1 is a supertype of t2 (i.e.
protected  JvmType TypeAnalysis.join(JvmType t1, JvmType t2)
           
 void TypeAnalysis.Store.push(JvmType type)
           
 void TypeAnalysis.Store.set(int slot, JvmType type)
           
 

Constructors in jasm.verifier with parameters of type JvmType
TypeAnalysis.Store(JvmType[] types, int maxLocals)
           
 



Copyright © 2013 David J. Pearce. All Rights Reserved.