Uses of Class
serp.bytecode.BCClass
Packages that use BCClass
-
Uses of BCClass in serp.bytecode
Fields in serp.bytecode declared as BCClassModifier and TypeFieldDescriptionprivate BCClass
ClassConstantInstruction._class
private BCClass
BCMember._owner
Methods in serp.bytecode that return BCClassModifier and TypeMethodDescriptionprivate BCClass
Project.checkCache
(String name) Check the cache for a loaded type.protected BCClass
BCClassLoader.createClass
(String name) Override this method if unfound classes should be created on-the-fly.(package private) abstract BCClass
Annotated.getBCClass()
Internal access to the owning class.(package private) BCClass
BCClass.getBCClass()
(package private) BCClass
BCMember.getBCClass()
ExceptionHandler.getCatchBC()
Return the bytecode of the exception type; returns null for catch-all clauses used to implement finally blocks.BCClass[]
Project.getClasses()
Return all loaded classes in the project.BCClass.getComponentBC()
Return the component type of this class, or null if not an array.BCClass[]
BCClass.getDeclaredInterfaceBCs()
Return the bytecode for the declared interfaces of this class, or an empty array if none.BCMember.getDeclarer()
Return theBCClass
that declares this member.InnerClass.getDeclarerBC()
Return the type for this instruction.BCClass[]
Exceptions.getExceptionBCs()
Return bytecode for the exception types of this method, or an empty array if none.FieldInstruction.getFieldDeclarerBC()
Return the declaring class of the field this instruction operates on, or null if not set.FieldInstruction.getFieldTypeBC()
Return the type of the field this instruction operates on, or null if not set.ConvertInstruction.getFromTypeBC()
Return the bytecode of the type being converted from.BCClass[]
BCClass.getInterfaceBCs()
Return the bytecode of all unique interfaces implemented by this class, including those of all superclasses.MethodInstruction.getMethodDeclarerBC()
Return the declaring type of the method this instruction operates on, or null if not set.BCClass[]
MethodInstruction.getMethodParamBCs()
Return the param types of the method this instruction operates on, or empty array if none.MethodInstruction.getMethodReturnBC()
Return the return type of the method this instruction operates on, or null if not set.BCClass[]
BCMethod.getParamBCs()
Return the bytecode for all the parameter types for this method.BCMethod.getReturnBC()
Return the bytecode for the return type of this method.BCClass.getSuperclassBC()
Return the bytecode of the superclass of this class, or null for types without superclasses.Annotation.getTypeBC()
The bytecode for the type of this annotation.BCField.getTypeBC()
Return the bytecode for the type of this field.ConstantValue.getTypeBC()
Return the bytecode for the type of constant this attribute represents.InnerClass.getTypeBC()
Return the type for this instruction.LocalVariable.getTypeBC()
Return the type of this local.TypedInstruction.getTypeBC()
Return the type for this instruction.Load the bytecode from the given class file.Project.loadClass
(File classFile, ClassLoader loader) Load the bytecode from the given class file.Project.loadClass
(InputStream in) Load the bytecode from the given stream.Project.loadClass
(InputStream in, ClassLoader loader) Load the bytecode from the given stream.Load the bytecode for the given class.Load a class with the given name.Project.loadClass
(String name, ClassLoader loader) Load the bytecode for the class with the given name.Import the given bytecode from another project.Methods in serp.bytecode with parameters of type BCClassModifier and TypeMethodDescriptionAnnotations.addAnnotation
(BCClass type) Add a new annotation.void
Exceptions.addException
(BCClass type) Add an exception to those thrown by this method.Code.addExceptionHandler
(Instruction tryStart, Instruction tryEnd, Instruction handlerStart, BCClass catchType) Add an exception handler to this code block.InnerClasses.addInnerClass
(String name, BCClass type, BCClass owner) Add an inner class.LocalVariableTable.addLocalVariable
(String name, BCClass type) Add a local to this table.void
Add a parameter type to this method.void
Add a parameter type to this method.private void
Cache a class.boolean
Project.containsClass
(BCClass type) Return true if the project already contains the given class.BCClass.declareField
(String name, BCClass type) Add a field to this class.void
BCClass.declareInterface
(BCClass type) Add an interface to those declared by this class.BCClass.declareMethod
(String name, BCClass returnType, BCClass[] paramTypes) Add a method to this class.Annotations.getAnnotation
(BCClass type) Return the annotation of the given type, or null if none.BCClass.getDeclaredMethod
(String name, BCClass[] paramTypes) Return the declared method with the given name and parameter types, or null if none.BCClass.getDeclaredMethod
(String name, BCClass returnType, BCClass[] paramTypes) Return the declared method with the given name and signature, or null if none.BCMethod[]
BCClass.getDeclaredMethods
(String name, BCClass[] paramTypes) Return all declared methods with the given name and parameter types.Code.getExceptionHandler
(BCClass catchType) Return the exception handler that catches the given exception type; if multiple handlers catch the given type, which is returned is undefined.Code.getExceptionHandlers
(BCClass catchType) Return all exception handlers that catch the given exception type, or an empty array if none.BCMethod[]
BCClass.getMethods
(String name, BCClass[] paramTypes) Return the methods with the given name and parameter types, including those of all superclasses, or an empty array if none.boolean
BCClass.isInstanceOf
(BCClass type) Return true if this class or any of its superclasses implement/extend the given interface/class.Import the given bytecode from another project.Annotation.Property.newAnnotationArrayValue
(BCClass type, int length) Set this property value to a new annotation array of the given type and length, returning the annotations for manipulation.Annotation.Property.newAnnotationValue
(BCClass type) Set this property value to a new annotation of the given type, returning the annotation for manipulation.(package private) void
Initialize from the given parsed bytecode.boolean
Annotations.removeAnnotation
(BCClass type) Remove the annotation of the given type.boolean
Project.removeClass
(BCClass type) Remove a class from this project.boolean
BCClass.removeDeclaredInterface
(BCClass type) Remove an interface declared by this class.boolean
BCClass.removeDeclaredMethod
(String name, BCClass[] paramTypes) Removes a method from this class.boolean
Exceptions.removeException
(BCClass type) Remove an exception thrown by this method.boolean
Code.removeExceptionHandler
(BCClass catchType) Remove the exception handler that catches the given type.private boolean
Project.removeFromCache
(String name, BCClass bc) Remove a cached class.(package private) void
Project.renameClass
(String oldName, String newName, BCClass bc) Renames the given class within this project.void
Set the class of the exception type, or null for catch-all clauses used for finally blocks.Set the type of class being loaded.void
BCClass.setDeclaredInterfaces
(BCClass[] interfaces) Set the interfaces declared implemented/extended by this class; set to null or an empty array if none.void
InnerClass.setDeclarer
(BCClass type) Set the type of this declaring class.void
Exceptions.setExceptions
(BCClass[] exceptions) Set the checked exceptions thrown by this method.Set the field this instruction operates on, for fields that are declared by the current class.Set the field this instruction operates on.FieldInstruction.setFieldDeclarer
(BCClass type) Set the declaring class of the field this instruction operates on.FieldInstruction.setFieldType
(BCClass type) Set the type of the field this instruction operates on.ConvertInstruction.setFromType
(BCClass type) Set the type being converted from.Set the method this instruction operates on, for methods that are declared by the current class.Set the method this instruction operates on.MethodInstruction.setMethodDeclarer
(BCClass type) Set the declaring type of the method this instruction operates on.void
MethodInstruction.setMethodParams
(BCClass[] types) Set the param types of the method this instruction operates on.MethodInstruction.setMethodReturn
(BCClass type) Set the return type of the method this instruction operates on.void
Change a parameter type of this method.void
Set the parameter type of this method.void
Set the return type of this method.void
BCClass.setSuperclass
(BCClass type) Set the superclass of this class.void
This annotation's type.void
Set the type of this field.void
Set the type of this inner class.void
Set the type of this local.Set the type of this instruction.void
Set the class value of this property.Set the value of this constant.boolean
Exceptions.throwsException
(BCClass type) Return true if the method declares that it throws the given exception type.Constructors in serp.bytecode with parameters of type BCClassModifierConstructorDescription(package private)
(package private)
(package private)
(package private)
ClassConstantInstruction
(BCClass bc, Code code, Instruction nop) -
Uses of BCClass in serp.bytecode.visitor
Methods in serp.bytecode.visitor with parameters of type BCClassModifier and TypeMethodDescriptionvoid
BCVisitor.enterBCClass
(BCClass obj) void
PrettyPrintVisitor.enterBCClass
(BCClass obj) void
BCVisitor.exitBCClass
(BCClass obj) void
PrettyPrintVisitor.exitBCClass
(BCClass obj)