Uses of Class
serp.bytecode.BCClass
Packages that use BCClass
-
Uses of BCClass in serp.bytecode
Methods in serp.bytecode that return BCClassModifier and TypeMethodDescriptionprotected BCClassBCClassLoader.createClass(String name) Override this method if unfound classes should be created on-the-fly.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 theBCClassthat 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.voidExceptions.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.voidAdd a parameter type to this method.voidAdd a parameter type to this method.booleanProject.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.voidBCClass.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.booleanBCClass.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.booleanAnnotations.removeAnnotation(BCClass type) Remove the annotation of the given type.booleanProject.removeClass(BCClass type) Remove a class from this project.booleanBCClass.removeDeclaredInterface(BCClass type) Remove an interface declared by this class.booleanBCClass.removeDeclaredMethod(String name, BCClass[] paramTypes) Removes a method from this class.booleanExceptions.removeException(BCClass type) Remove an exception thrown by this method.booleanCode.removeExceptionHandler(BCClass catchType) Remove the exception handler that catches the given type.voidSet the class of the exception type, or null for catch-all clauses used for finally blocks.Set the type of class being loaded.voidBCClass.setDeclaredInterfaces(BCClass[] interfaces) Set the interfaces declared implemented/extended by this class; set to null or an empty array if none.voidInnerClass.setDeclarer(BCClass type) Set the type of this declaring class.voidExceptions.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.voidMethodInstruction.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.voidChange a parameter type of this method.voidSet the parameter type of this method.voidSet the return type of this method.voidBCClass.setSuperclass(BCClass type) Set the superclass of this class.voidThis annotation's type.voidSet the type of this field.voidSet the type of this inner class.voidSet the type of this local.Set the type of this instruction.voidSet the class value of this property.Set the value of this constant.booleanExceptions.throwsException(BCClass type) Return true if the method declares that it throws the given exception type. -
Uses of BCClass in serp.bytecode.visitor
Methods in serp.bytecode.visitor with parameters of type BCClassModifier and TypeMethodDescriptionvoidBCVisitor.enterBCClass(BCClass obj) voidPrettyPrintVisitor.enterBCClass(BCClass obj) voidBCVisitor.exitBCClass(BCClass obj) voidPrettyPrintVisitor.exitBCClass(BCClass obj)