- cacheCtClass(String, CtClass, boolean) - Method in class xapi.bytecode.ClassPool
-
Provides a hook so that subclasses can do their own
caching of classes.
- cachedStringRep - Variable in class xapi.bytecode.CtMethod
-
- CannotCompileException - Exception in xapi.bytecode
-
- CannotCompileException(String) - Constructor for exception xapi.bytecode.CannotCompileException
-
Constructs a CannotCompileException with a message.
- CannotCompileException(Throwable) - Constructor for exception xapi.bytecode.CannotCompileException
-
Constructs a CannotCompileException with an Exception
representing the cause.
- CannotCompileException(String, Throwable) - Constructor for exception xapi.bytecode.CannotCompileException
-
Constructs a CannotCompileException with a detailed message
and an Exception representing the cause.
- CannotCompileException(NotFoundException) - Constructor for exception xapi.bytecode.CannotCompileException
-
Constructs a CannotCompileException with a
NotFoundException.
- CannotCompileException(ClassNotFoundException, String) - Constructor for exception xapi.bytecode.CannotCompileException
-
Constructs a CannotCompileException
with a ClassNotFoundException.
- CannotCompileException(ClassFormatError, String) - Constructor for exception xapi.bytecode.CannotCompileException
-
Constructs a CannotCompileException with a ClassFormatError.
- changeReturnType(String, String) - Static method in class xapi.bytecode.Descriptor
-
Changes the return type included in the given descriptor.
- CharMemberValue - Class in xapi.bytecode
-
- CharMemberValue(int, ConstPool) - Constructor for class xapi.bytecode.CharMemberValue
-
Constructs a char constant value.
- CharMemberValue(char, ConstPool) - Constructor for class xapi.bytecode.CharMemberValue
-
Constructs a char constant value.
- CharMemberValue(ConstPool) - Constructor for class xapi.bytecode.CharMemberValue
-
Constructs a char constant value.
- charType - Static variable in class xapi.bytecode.CtClass
-
The CtClass object representing
the char type.
- childFirstLookup - Variable in class xapi.bytecode.ClassPool
-
Determines the search order.
- ClassClassPath - Class in xapi.bytecode
-
- ClassClassPath(Class<?>) - Constructor for class xapi.bytecode.ClassClassPath
-
Creates a search path.
- classes - Variable in class xapi.bytecode.ClassPool
-
- ClassFile - Class in xapi.bytecode
-
- ClassFile(DataInputStream) - Constructor for class xapi.bytecode.ClassFile
-
Constructs a class file from a byte stream.
- ClassFile(boolean, String, String) - Constructor for class xapi.bytecode.ClassFile
-
Constructs a class file including no members.
- classInfoIndex(String) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and class_info_index
in member_value.
- classInfoIndex(int) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and class_info_index
in member_value.
- ClassMap - Class in xapi.bytecode
-
- ClassMap() - Constructor for class xapi.bytecode.ClassMap
-
Constructs a hash table.
- ClassMemberValue - Class in xapi.bytecode
-
- ClassMemberValue(int, ConstPool) - Constructor for class xapi.bytecode.ClassMemberValue
-
Constructs a class value.
- ClassMemberValue(String, ConstPool) - Constructor for class xapi.bytecode.ClassMemberValue
-
Constructs a class value.
- ClassMemberValue(ConstPool) - Constructor for class xapi.bytecode.ClassMemberValue
-
Constructs a class value.
- ClassPath - Interface in xapi.bytecode
-
- ClasspathResource - Interface in xapi.dev.scanner
-
- ClasspathResourceMap - Class in xapi.dev.scanner
-
- ClasspathResourceMap(ExecutorService, Set<Class<? extends Annotation>>, Set<Pattern>, Set<Pattern>, Set<Pattern>) - Constructor for class xapi.dev.scanner.ClasspathResourceMap
-
- ClasspathScanner - Interface in xapi.dev.scanner
-
Most runtime annotation scanner libraries are too heavyweight;
they try to do too much.
- ClasspathScannerDefault - Class in xapi.dev.scanner
-
- ClasspathScannerDefault() - Constructor for class xapi.dev.scanner.ClasspathScannerDefault
-
- ClasspathScannerDefault.ScanRunner - Class in xapi.dev.scanner
-
- ClasspathScannerDefault.ScanRunner(URL, Iterable<String>, ClasspathResourceMap, int) - Constructor for class xapi.dev.scanner.ClasspathScannerDefault.ScanRunner
-
- ClassPool - Class in xapi.bytecode
-
- ClassPool() - Constructor for class xapi.bytecode.ClassPool
-
Creates a root class pool.
- ClassPool(boolean) - Constructor for class xapi.bytecode.ClassPool
-
Creates a root class pool.
- ClassPool(ClassPool) - Constructor for class xapi.bytecode.ClassPool
-
Creates a class pool.
- clearImportedPackages() - Method in class xapi.bytecode.ClassPool
-
Clear all the package names recorded by importPackage().
- close() - Method in class xapi.bytecode.AnnotationsWriter
-
Closes the output stream.
- close() - Method in class xapi.bytecode.ClassClassPath
-
Does nothing.
- close() - Method in interface xapi.bytecode.ClassPath
-
This method is invoked when the ClassPath object is
detached from the search path.
- code() - Method in enum xapi.bytecode.api.ByteCodes
-
- code() - Method in interface xapi.bytecode.api.IsByteCode
-
- compact() - Method in class xapi.bytecode.ClassFile
-
Eliminates dead constant pool items.
- CONST_Class - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Class
- CONST_Double - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Double
- CONST_Fieldref - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Fieldref
- CONST_Float - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Float
- CONST_Integer - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Integer
- CONST_InterfaceMethodref - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_InterfaceMethodref
- CONST_Long - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Long
- CONST_Methodref - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Methodref
- CONST_NameAndType - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_NameAndType
- CONST_String - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_String
- CONST_Utf8 - Static variable in class xapi.bytecode.ConstPool
-
CONSTANT_Utf8
- ConstantAttribute - Class in xapi.bytecode
-
- ConstantAttribute(ConstPool, int) - Constructor for class xapi.bytecode.ConstantAttribute
-
Constructs a ConstantValue attribute.
- constPool - Variable in class xapi.bytecode.AttributeInfo
-
- ConstPool - Class in xapi.bytecode
-
- ConstPool(String) - Constructor for class xapi.bytecode.ConstPool
-
Constructs a constant pool table.
- ConstPool(DataInput) - Constructor for class xapi.bytecode.ConstPool
-
Constructs a constant pool table from the given byte stream.
- constValueIndex(boolean) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(byte) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(char) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(short) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(int) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(long) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(float) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(double) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(String) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- constValueIndex(int, int) - Method in class xapi.bytecode.AnnotationsWriter
-
Writes tag and const_value_index
in member_value.
- copy(ConstPool, Map<?, ?>) - Method in class xapi.bytecode.AnnotationDefaultAttribute
-
Copies this attribute and returns a new copy.
- copy(ConstPool, Map<?, ?>) - Method in class xapi.bytecode.AnnotationsAttribute
-
Copies this attribute and returns a new copy.
- copy(ConstPool, Map<?, ?>) - Method in class xapi.bytecode.AttributeInfo
-
Makes a copy.
- copy(ConstPool, Map<?, ?>) - Method in class xapi.bytecode.ConstantAttribute
-
Makes a copy.
- copy(int, ConstPool, Map<?, ?>) - Method in class xapi.bytecode.ConstPool
-
Copies the n-th item in this ConstPool object into the destination
ConstPool object.
- copy(ConstPool, Map<?, ?>) - Method in class xapi.bytecode.InnerClassesAttribute
-
Makes a copy.
- copy(ConstPool, Map<?, ?>) - Method in class xapi.bytecode.ParameterAnnotationsAttribute
-
Copies this attribute and returns a new copy.
- copy(ConstPool, Map<?, ?>) - Method in class xapi.bytecode.SignatureAttribute
-
Makes a copy.
- createCtClass(String, boolean) - Method in class xapi.bytecode.ClassPool
-
Creates a CtClass object representing the specified class.
- createMemberValue(ConstPool, CtClass) - Static method in class xapi.bytecode.Annotation
-
Makes an instance of MemberValue.
- CtBehavior - Class in xapi.bytecode
-
- CtBehavior(CtClass, MethodInfo) - Constructor for class xapi.bytecode.CtBehavior
-
- CtClass - Class in xapi.bytecode
-
- CtClass(String) - Constructor for class xapi.bytecode.CtClass
-
- CtField - Class in xapi.bytecode
-
- CtField(CtClass, String, CtClass) - Constructor for class xapi.bytecode.CtField
-
Creates a CtField object.
- CtField(CtField, CtClass) - Constructor for class xapi.bytecode.CtField
-
Creates a copy of the given field.
- CtMember - Class in xapi.bytecode
-
- CtMember(CtClass) - Constructor for class xapi.bytecode.CtMember
-
- CtMethod - Class in xapi.bytecode
-
- CtMethod(CtClass, String, CtClass[], CtClass) - Constructor for class xapi.bytecode.CtMethod
-
Creates a public abstract method.
- CtPrimitiveType - Class in xapi.bytecode
-
- currentChar() - Method in class xapi.bytecode.Descriptor.Iterator
-
Returns the first character of the current element.
- get() - Method in class xapi.bytecode.AttributeInfo
-
Returns the info field
of this attribute_info structure.
- get(Object) - Method in class xapi.bytecode.ClassMap
-
Returns the class name to wihch the given jvmClassName
is mapped.
- get(String) - Method in class xapi.bytecode.ClassPool
-
Reads a class file from the source and returns a reference
to the CtClass
object representing that class file.
- get(String[]) - Method in class xapi.bytecode.ClassPool
-
Reads class files from the source and returns an array of
CtClass
objects representing those class files.
- get0(String, boolean) - Method in class xapi.bytecode.ClassPool
-
- getAccessFlags() - Method in class xapi.bytecode.ClassFile
-
Returns access flags.
- getAccessFlags() - Method in class xapi.bytecode.FieldInfo
-
Returns the access flags.
- getAccessFlags() - Method in class xapi.bytecode.MethodInfo
-
Returns access flags.
- getAndRename(String, String) - Method in class xapi.bytecode.ClassPool
-
Reads a class file and constructs a CtClass
object with a new name.
- getAnnotation() - Method in class xapi.bytecode.AnnotationImpl
-
Obtains the internal data structure representing the annotation.
- getAnnotation(String) - Method in class xapi.bytecode.AnnotationsAttribute
-
Parses the annotations and returns a data structure representing
the annotation with the specified type.
- getAnnotation(String) - Method in class xapi.bytecode.ClassFile
-
This method is for lazy programmers only;
it checks both runtime and compile annotations.
- getAnnotation(Class<?>) - Method in class xapi.bytecode.CtBehavior
-
Returns the annotation if the class has the specified annotation class.
- getAnnotation(Class<?>) - Method in class xapi.bytecode.CtClass
-
Returns the annotation if the class has the specified annotation class.
- getAnnotation(Class<?>) - Method in class xapi.bytecode.CtField
-
Returns the annotation if the class has the specified annotation class.
- getAnnotation(Class<?>) - Method in class xapi.bytecode.CtMember
-
Returns the annotation if the class has the specified annotation class.
- getAnnotations() - Method in class xapi.bytecode.AnnotationsAttribute
-
Parses the annotations and returns a data structure representing
that parsed annotations.
- getAnnotations() - Method in class xapi.bytecode.CtBehavior
-
Returns the annotations associated with this method or constructor.
- getAnnotations() - Method in class xapi.bytecode.CtClass
-
Returns the annotations associated with this class.
- getAnnotations() - Method in class xapi.bytecode.CtField
-
Returns the annotations associated with this field.
- getAnnotations() - Method in class xapi.bytecode.CtMember
-
Returns the annotations associated with this member.
- getAnnotations() - Method in class xapi.bytecode.ParameterAnnotationsAttribute
-
Parses the annotations and returns a data structure representing
that parsed annotations.
- getAttribute(String) - Method in class xapi.bytecode.ClassFile
-
Returns the attribute with the specified name.
- getAttribute(String) - Method in class xapi.bytecode.CtBehavior
-
Obtains an attribute with the given name.
- getAttribute(String) - Method in class xapi.bytecode.CtClass
-
Obtains an attribute with the given name.
- getAttribute(String) - Method in class xapi.bytecode.CtField
-
Obtains an attribute with the given name.
- getAttribute(String) - Method in class xapi.bytecode.CtMember
-
Obtains a user-defined attribute with the given name.
- getAttribute(String) - Method in class xapi.bytecode.FieldInfo
-
Returns the attribute with the specified name.
- getAttribute(String) - Method in class xapi.bytecode.MethodInfo
-
Returns the attribute with the specified name.
- getAttributes() - Method in class xapi.bytecode.ClassFile
-
Returns all the attributes.
- getAttributes() - Method in class xapi.bytecode.FieldInfo
-
Returns all the attributes.
- getAttributes() - Method in class xapi.bytecode.MethodInfo
-
Returns all the attributes.
- getAvailableAnnotations() - Method in class xapi.bytecode.CtBehavior
-
Returns the annotations associated with this method or constructor.
- getAvailableAnnotations() - Method in class xapi.bytecode.CtClass
-
Returns the annotations associated with this class.
- getAvailableAnnotations() - Method in class xapi.bytecode.CtField
-
Returns the annotations associated with this field.
- getAvailableAnnotations() - Method in class xapi.bytecode.CtMember
-
Returns the annotations associated with this member.
- getAvailableParameterAnnotations() - Method in class xapi.bytecode.CtBehavior
-
Returns the parameter annotations associated with this method or constructor.
- getCached(String) - Method in class xapi.bytecode.ClassPool
-
Provide a hook so that subclasses can do their own
caching of classes.
- getCause() - Method in exception xapi.bytecode.CannotCompileException
-
Gets the cause of this throwable.
- getClassBound() - Method in class xapi.bytecode.SignatureAttribute.TypeParameter
-
Returns the class bound of this parameter.
- getClassData() - Method in class xapi.dev.scanner.ByteCodeResource
-
- getClassFile() - Method in class xapi.bytecode.CtClass
-
Returns a class file for this class.
- getClassFile2() - Method in class xapi.bytecode.CtClass
-
Returns a class file for this class (read only).
- getClassInfo(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_Class_info structure
at the given index.
- getClassLoader() - Method in class xapi.bytecode.ClassPool
-
Get the classloader for toClass(), getAnnotations() in
CtClass, etc.
- getClassName() - Method in class xapi.bytecode.ConstPool
-
Returns the name of the class using this constant pool table.
- getClassName() - Method in error xapi.bytecode.NoSuchClassError
-
Returns the name of the class not found.
- getClassNames() - Method in class xapi.bytecode.ConstPool
-
Get all the class names.
- getClassPool() - Method in class xapi.bytecode.CtClass
-
Returns a ClassPool for this class.
- getCompileAnnotation(String) - Method in class xapi.bytecode.ClassFile
-
This method returns any compile annotations on the given classfile.
- getComponentType() - Method in class xapi.bytecode.CtClass
-
If this object represents an array, this method returns the component
type of the array.
- getComponentType() - Method in class xapi.bytecode.SignatureAttribute.ArrayType
-
Returns the component type.
- getConstantValue() - Method in class xapi.bytecode.ConstantAttribute
-
Returns constantvalue_index.
- getConstantValue() - Method in class xapi.bytecode.CtField
-
Returns the value of this field if it is a constant field.
- getConstantValue() - Method in class xapi.bytecode.FieldInfo
-
Finds a ConstantValue attribute and returns the index into
the constant_pool table.
- getConstPool() - Method in class xapi.bytecode.AnnotationsWriter
-
Obtains the constant pool given to the constructor.
- getConstPool() - Method in class xapi.bytecode.AttributeInfo
-
Returns a constant pool table.
- getConstPool() - Method in class xapi.bytecode.ClassFile
-
Returns a constant pool table.
- getConstPool() - Method in class xapi.bytecode.FieldInfo
-
Returns the constant pool table used
by this field_info.
- getConstPool() - Method in class xapi.bytecode.MethodInfo
-
Returns a constant pool table used by this method.
- getCtClass(String) - Method in class xapi.bytecode.ClassPool
-
Returns a CtClass object with the given name.
- getCtlass() - Method in class xapi.bytecode.SignatureAttribute.BaseType
-
Returns the CtClass representing this
primitive type.
- getDataSize() - Method in class xapi.bytecode.CtPrimitiveType
-
Returns the data size of the primitive type.
- getDeclaredMethod(String, CtClass[]) - Method in class xapi.bytecode.CtClass
-
Retrieves the method with the specified name and parameter types
among the methods declared in the class.
- getDeclaredMethod(String) - Method in class xapi.bytecode.CtClass
-
Retrieves the method with the specified name among the methods
declared in the class.
- getDeclaredMethods() - Method in class xapi.bytecode.CtClass
-
Gets all methods declared in the class.
- getDeclaringClass() - Method in class xapi.bytecode.CtClass
-
If this class is a member class or interface of another class,
then the class enclosing this class is returned.
- getDeclaringClass() - Method in class xapi.bytecode.CtField
-
Returns the class declaring the field.
- getDeclaringClass() - Method in class xapi.bytecode.CtMember
-
Returns the class that declares this member.
- getDeclaringClass() - Method in class xapi.bytecode.SignatureAttribute.ClassType
-
If this class is a member of another class, returns the
class in which this class is declared.
- getDeclaringClass() - Method in class xapi.bytecode.SignatureAttribute.NestedClassType
-
Returns the class that declares this nested class.
- getDefault() - Static method in class xapi.bytecode.ClassPool
-
Returns the default class pool.
- getDefaultValue() - Method in class xapi.bytecode.AnnotationDefaultAttribute
-
Obtains the default value represented by this attribute.
- getDescriptor() - Method in class xapi.bytecode.CtPrimitiveType
-
Returns the descriptor representing this type.
- getDescriptor() - Method in class xapi.bytecode.FieldInfo
-
Returns the field descriptor.
- getDescriptor() - Method in class xapi.bytecode.MethodInfo
-
Returns a method descriptor.
- getDescriptor() - Method in class xapi.bytecode.SignatureAttribute.BaseType
-
Returns the descriptor representing this primitive type.
- getDimension() - Method in class xapi.bytecode.SignatureAttribute.ArrayType
-
Returns the dimension of the array.
- getDoubleInfo(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_Double_info structure
at the given index.
- getExceptionTypes() - Method in class xapi.bytecode.SignatureAttribute.MethodSignature
-
Returns the types of the exceptions that may be thrown.
- getFieldInfo() - Method in class xapi.bytecode.CtField
-
Returns the FieldInfo representing the field in the class file.
- getFieldInfo2() - Method in class xapi.bytecode.CtField
-
Returns the FieldInfo representing the field in the class
file (read only).
- getFieldrefClass(int) - Method in class xapi.bytecode.ConstPool
-
Reads the class_index field of the
CONSTANT_Fieldref_info structure
at the given index.
- getFieldrefClassName(int) - Method in class xapi.bytecode.ConstPool
-
Reads the class_index field of the
CONSTANT_Fieldref_info structure
at the given index.
- getFieldrefName(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_index field of the
CONSTANT_NameAndType_info structure
indirectly specified by the given index.
- getFieldrefNameAndType(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_and_type_index field of the
CONSTANT_Fieldref_info structure
at the given index.
- getFieldrefType(int) - Method in class xapi.bytecode.ConstPool
-
Reads the descriptor_index field of the
CONSTANT_NameAndType_info structure
indirectly specified by the given index.
- getFields() - Method in class xapi.bytecode.ClassFile
-
Returns all the fields declared in the class.
- getFloatInfo(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_Float_info structure
at the given index.
- getGetMethodDescriptor() - Method in class xapi.bytecode.CtPrimitiveType
-
Returns the descriptor of the method for retrieving the value
from the wrapper object.
- getGetMethodName() - Method in class xapi.bytecode.CtPrimitiveType
-
Returns the name of the method for retrieving the value
from the wrapper object.
- getImportedPackages() - Method in class xapi.bytecode.ClassPool
-
Returns all the package names recorded by importPackage().
- getInnerAccessFlags() - Method in class xapi.bytecode.ClassFile
-
Returns access and property flags of this nested class.
- getIntegerInfo(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_Integer_info structure
at the given index.
- getInterfaceBound() - Method in class xapi.bytecode.SignatureAttribute.TypeParameter
-
Returns the interface bound of this parameter.
- getInterfaceMethodrefClass(int) - Method in class xapi.bytecode.ConstPool
-
Reads the class_index field of the
CONSTANT_InterfaceMethodref_info structure
at the given index.
- getInterfaceMethodrefClassName(int) - Method in class xapi.bytecode.ConstPool
-
Reads the class_index field of the
CONSTANT_InterfaceMethodref_info structure
at the given index.
- getInterfaceMethodrefName(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_index field of the
CONSTANT_NameAndType_info structure
indirectly specified by the given index.
- getInterfaceMethodrefNameAndType(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_and_type_index field of the
CONSTANT_InterfaceMethodref_info structure
at the given index.
- getInterfaceMethodrefType(int) - Method in class xapi.bytecode.ConstPool
-
Reads the descriptor_index field of the
CONSTANT_NameAndType_info structure
indirectly specified by the given index.
- getInterfaces() - Method in class xapi.bytecode.ClassFile
-
Returns the names of the interfaces implemented by the class.
- getInterfaces() - Method in class xapi.bytecode.CtClass
-
Obtains the class objects representing the interfaces implemented
by the class or, if this object represents an interface, the interfaces
extended by that interface.
- getInterfaces() - Method in class xapi.bytecode.SignatureAttribute.ClassSignature
-
Returns the super interfaces.
- getKind() - Method in class xapi.bytecode.SignatureAttribute.TypeArgument
-
Returns the kind of this type argument.
- getLdcValue(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_Integer_info, _Float_info,
_Long_info, _Double_info, or
_String_info structure.
- getLongInfo(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_Long_info structure
at the given index.
- getLongName() - Method in class xapi.bytecode.CtBehavior
-
Returns the method or constructor name followed by parameter types
such as javassist.CtBehavior.stBody(String).
- getLongName() - Method in class xapi.bytecode.CtMethod
-
Returns the method name followed by parameter types
such as javassist.CtMethod.setBody(String).
- getMajorVersion() - Method in class xapi.bytecode.ClassFile
-
Get the Major version.
- getMemberClass(int) - Method in class xapi.bytecode.ConstPool
-
Reads the class_index field of the
CONSTANT_Fieldref_info,
CONSTANT_Methodref_info,
or CONSTANT_Interfaceref_info,
structure at the given index.
- getMemberNameAndType(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_and_type_index field of the
CONSTANT_Fieldref_info,
CONSTANT_Methodref_info,
or CONSTANT_Interfaceref_info,
structure at the given index.
- getMemberNames() - Method in class xapi.bytecode.Annotation
-
Obtains all the member names.
- getMemberValue(String) - Method in class xapi.bytecode.Annotation
-
Obtains the member value with the given name.
- getMethod(String) - Method in class xapi.bytecode.ClassFile
-
Returns the method with the specified name.
- getMethod(String, String) - Method in class xapi.bytecode.CtClass
-
Returns the method with the given name and signature.
- getMethodInfo() - Method in class xapi.bytecode.CtBehavior
-
Returns the MethodInfo representing this method/constructor in the
class file.
- getMethodInfo2() - Method in class xapi.bytecode.CtBehavior
-
Returns the MethodInfo representing the method/constructor in the
class file (read only).
- getMethodrefClass(int) - Method in class xapi.bytecode.ConstPool
-
Reads the class_index field of the
CONSTANT_Methodref_info structure
at the given index.
- getMethodrefClassName(int) - Method in class xapi.bytecode.ConstPool
-
Reads the class_index field of the
CONSTANT_Methodref_info structure
at the given index.
- getMethodrefName(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_index field of the
CONSTANT_NameAndType_info structure
indirectly specified by the given index.
- getMethodrefNameAndType(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_and_type_index field of the
CONSTANT_Methodref_info structure
at the given index.
- getMethodrefType(int) - Method in class xapi.bytecode.ConstPool
-
Reads the descriptor_index field of the
CONSTANT_NameAndType_info structure
indirectly specified by the given index.
- getMethods() - Method in class xapi.bytecode.ClassFile
-
Returns all the methods declared in the class.
- getMethods() - Method in class xapi.bytecode.CtClass
-
Returns an array containing CtMethod objects
representing all the non-private methods of the class.
- getMinorVersion() - Method in class xapi.bytecode.ClassFile
-
Get the minor version.
- getModifiers() - Method in class xapi.bytecode.CtBehavior
-
Obtains the modifiers of the method/constructor.
- getModifiers() - Method in class xapi.bytecode.CtClass
-
Returns the modifiers for this class, encoded in an integer.
- getModifiers() - Method in class xapi.bytecode.CtField
-
Returns the encoded modifiers of the field.
- getModifiers() - Method in class xapi.bytecode.CtMember
-
Obtains the modifiers of the member.
- getModifiers() - Method in class xapi.bytecode.CtPrimitiveType
-
Returns the modifiers for this type.
- getName() - Method in class xapi.bytecode.AttributeInfo
-
Returns an attribute name.
- getName() - Method in class xapi.bytecode.ClassFile
-
Returns the class name.
- getName() - Method in class xapi.bytecode.CtClass
-
Obtains the fully-qualified name of the class.
- getName() - Method in class xapi.bytecode.CtField
-
Returns the name of the field.
- getName() - Method in class xapi.bytecode.CtMember
-
Obtains the name of the member.
- getName() - Method in class xapi.bytecode.CtMethod
-
Obtains the name of this method.
- getName() - Method in class xapi.bytecode.FieldInfo
-
Returns the field name.
- getName() - Method in class xapi.bytecode.MethodInfo
-
Returns a method name.
- getName() - Method in class xapi.bytecode.SignatureAttribute.ClassType
-
Returns the class name.
- getName() - Method in class xapi.bytecode.SignatureAttribute.TypeParameter
-
Returns the name of the type parameter.
- getName() - Method in class xapi.bytecode.SignatureAttribute.TypeVariable
-
Returns the variable name.
- getNameAndTypeDescriptor(int) - Method in class xapi.bytecode.ConstPool
-
Reads the descriptor_index field of the
CONSTANT_NameAndType_info structure
at the given index.
- getNameAndTypeName(int) - Method in class xapi.bytecode.ConstPool
-
Reads the name_index field of the
CONSTANT_NameAndType_info structure
at the given index.
- getNestedClasses() - Method in class xapi.bytecode.CtClass
-
Returns an array of nested classes declared in the class.
- getOrNull(String) - Method in class xapi.bytecode.ClassPool
-
Reads a class file from the source and returns a reference
to the CtClass
object representing that class file.
- getPackageName() - Method in class xapi.bytecode.CtClass
-
Obtains the package name.
- getParamDescriptor(String) - Static method in class xapi.bytecode.Descriptor
-
Returns the signature of the given descriptor.
- getParameterAnnotations() - Method in class xapi.bytecode.CtBehavior
-
Returns the parameter annotations associated with this method or constructor.
- getParameters() - Method in class xapi.bytecode.SignatureAttribute.ClassSignature
-
Returns the type parameters.
- getParameterTypes() - Method in class xapi.bytecode.CtBehavior
-
Obtains parameter types of this method/constructor.
- getParameterTypes(String, ClassPool) - Static method in class xapi.bytecode.Descriptor
-
Returns the CtClass objects representing the parameter
types specified by the given descriptor.
- getParameterTypes() - Method in class xapi.bytecode.SignatureAttribute.MethodSignature
-
Returns the types of the formal parameters.
- getReason() - Method in exception xapi.bytecode.CannotCompileException
-
Gets a long message if it is available.
- getRefClasses() - Method in class xapi.bytecode.CtClass
-
Returns a collection of the names of all the classes
referenced in this class.
- getResourceName() - Method in interface xapi.dev.scanner.ClasspathResource
-
- getResourceName() - Method in class xapi.dev.scanner.DelegateClasspathResource
-
- getResourceName() - Method in class xapi.dev.scanner.FileBackedResource
-
- getResourceName() - Method in class xapi.dev.scanner.JarBackedResource
-
- getReturnType() - Method in class xapi.bytecode.CtMethod
-
Obtains the type of the returned value.
- getReturnType(String, ClassPool) - Static method in class xapi.bytecode.Descriptor
-
Returns the CtClass object representing the return
type specified by the given descriptor.
- getReturnType() - Method in class xapi.bytecode.SignatureAttribute.MethodSignature
-
Returns the type of the returned value.
- getRuntimeAnnotation(String) - Method in class xapi.bytecode.ClassFile
-
This method returns any runtime annotations on the given classfile.
- getSignature() - Method in class xapi.bytecode.CtBehavior
-
Returns the method signature (the parameter types
and the return type).
- getSignature() - Method in class xapi.bytecode.CtField
-
Returns the character string representing the type of the field.
- getSignature() - Method in class xapi.bytecode.CtMember
-
Returns the character string representing the signature of the member.
- getSignature() - Method in class xapi.bytecode.SignatureAttribute
-
Returns the signature indicated by signature_index.
- getSimpleName() - Method in class xapi.bytecode.CtClass
-
Obtains the not-qualified class name.
- getSize() - Method in class xapi.bytecode.ConstPool
-
Returns the number of entries in this table.
- getSource() - Method in class xapi.dev.scanner.SourceCodeResource
-
- getSourceFile() - Method in class xapi.bytecode.ClassFile
-
Returns the source file containing this class.
- getStringInfo(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_String_info structure
at the given index.
- getSuperclass() - Method in class xapi.bytecode.ClassFile
-
Returns the super class name.
- getSuperclass() - Method in class xapi.bytecode.CtClass
-
Obtains the class object representing the superclass of the
class.
- getSuperClass() - Method in class xapi.bytecode.SignatureAttribute.ClassSignature
-
Returns the super class.
- getSuperclassId() - Method in class xapi.bytecode.ClassFile
-
Returns the index of the constant pool entry representing the super
class.
- getTag(int) - Method in class xapi.bytecode.ConstPool
-
Returns the tag field of the constant pool table
entry at the given index.
- getThisClassInfo() - Method in class xapi.bytecode.ConstPool
-
Returns the index of CONSTANT_Class_info structure
specifying the class using this constant pool table.
- getType() - Method in class xapi.bytecode.ArrayMemberValue
-
Obtains the type of the elements.
- getType() - Method in class xapi.bytecode.CtField
-
Returns the type of the field.
- getType() - Method in class xapi.bytecode.EnumMemberValue
-
Obtains the enum type name.
- getType() - Method in class xapi.bytecode.SignatureAttribute.TypeArgument
-
Returns the type represented by this argument
if the argument is not a wildcard type.
- getTypeArguments() - Method in class xapi.bytecode.SignatureAttribute.ClassType
-
Returns the type arguments.
- getTypeName() - Method in class xapi.bytecode.Annotation
-
Obtains the name of the annotation type.
- getTypeName() - Method in class xapi.bytecode.AnnotationImpl
-
Obtains the name of the annotation type.
- getTypeParameters() - Method in class xapi.bytecode.SignatureAttribute.MethodSignature
-
Returns the formal type parameters.
- getURL() - Method in class xapi.bytecode.CtClass
-
Returns the uniform resource locator (URL) of the class file.
- getUtf8Info(int) - Method in class xapi.bytecode.ConstPool
-
Reads CONSTANT_utf8_info structure
at the given index.
- getValue() - Method in class xapi.bytecode.ArrayMemberValue
-
Obtains the elements of the array.
- getValue() - Method in class xapi.bytecode.BooleanMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.ByteMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.CharMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.ClassMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.DoubleMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.EnumMemberValue
-
Obtains the name of the enum constant value.
- getValue() - Method in class xapi.bytecode.FloatMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.IntegerMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.LongMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.ShortMemberValue
-
Obtains the value of the member.
- getValue() - Method in class xapi.bytecode.StringMemberValue
-
Obtains the value of the member.
- getWrapperName() - Method in class xapi.bytecode.CtPrimitiveType
-
Returns the name of the wrapper class.
- importPackage(String) - Method in class xapi.bytecode.ClassPool
-
Record a package name so that the Javassist compiler searches
the package to resolve a class name.
- includeBytecode(String) - Method in class xapi.dev.scanner.ClasspathResourceMap
-
- includeResource(String) - Method in class xapi.dev.scanner.ClasspathResourceMap
-
- includeSourcecode(String) - Method in class xapi.dev.scanner.ClasspathResourceMap
-
- initCause(Throwable) - Method in exception xapi.bytecode.CannotCompileException
-
Initializes the cause of this throwable.
- innerClass(int) - Method in class xapi.bytecode.InnerClassesAttribute
-
Returns the class name indicated
by classes[nth].inner_class_info_index.
- InnerClassesAttribute - Class in xapi.bytecode
-
- InnerClassesAttribute(ConstPool) - Constructor for class xapi.bytecode.InnerClassesAttribute
-
Constructs an empty InnerClasses attribute.
- innerClassIndex(int) - Method in class xapi.bytecode.InnerClassesAttribute
-
Returns classes[nth].inner_class_info_index.
- innerName(int) - Method in class xapi.bytecode.InnerClassesAttribute
-
Returns the simple class name indicated
by classes[nth].inner_name_index.
- innerNameIndex(int) - Method in class xapi.bytecode.InnerClassesAttribute
-
Returns classes[nth].inner_name_index.
- insertClassPath(ClassPath) - Method in class xapi.bytecode.ClassPool
-
Insert a ClassPath object at the head of the
search path.
- insertClassPath(String) - Method in class xapi.bytecode.ClassPool
-
Inserts a directory or a jar (or zip) file at the head of the
search path.
- insertParameter(String, String) - Static method in class xapi.bytecode.Descriptor
-
Inserts a parameter type at the beginning of the parameter
list represented
by the given descriptor.
- insertParameter(CtClass, String) - Static method in class xapi.bytecode.Descriptor
-
Inserts a parameter type at the beginning of the parameter
list represented
by the given descriptor.
- IntegerMemberValue - Class in xapi.bytecode
-
- IntegerMemberValue(int, ConstPool) - Constructor for class xapi.bytecode.IntegerMemberValue
-
Constructs an int constant value.
- IntegerMemberValue(ConstPool, int) - Constructor for class xapi.bytecode.IntegerMemberValue
-
Constructs an int constant value.
- IntegerMemberValue(ConstPool) - Constructor for class xapi.bytecode.IntegerMemberValue
-
Constructs an int constant value.
- intType - Static variable in class xapi.bytecode.CtClass
-
The CtClass object representing
the int type.
- invisibleTag - Static variable in class xapi.bytecode.AnnotationsAttribute
-
The name of the RuntimeInvisibleAnnotations attribute.
- invisibleTag - Static variable in class xapi.bytecode.ParameterAnnotationsAttribute
-
The name of the RuntimeInvisibleParameterAnnotations
attribute.
- invoke(Object, Method, Object[]) - Method in class xapi.bytecode.AnnotationImpl
-
Executes a method invocation on a proxy instance.
- is2byte() - Method in class xapi.bytecode.Descriptor.Iterator
-
Returns true if the current element is double or long type.
- isAbstract() - Method in class xapi.bytecode.ClassFile
-
Returns true if this is an abstract class or an interface.
- isAnnotation() - Method in class xapi.bytecode.CtClass
-
Determines whether this object represents an annotation type.
- isArray() - Method in class xapi.bytecode.CtClass
-
Returns true if this object represents an array type.
- IsByteCode - Interface in xapi.bytecode.api
-
- isConstructor(String, int) - Method in class xapi.bytecode.ConstPool
-
Determines whether CONSTANT_Methodref_info
structure at the given index represents the constructor
of the given class.
- isConstructor() - Method in class xapi.bytecode.MethodInfo
-
Returns true if this is a constructor.
- isEmpty() - Method in class xapi.bytecode.CtBehavior
-
Returns true if the body is empty.
- isEmpty() - Method in class xapi.bytecode.CtMethod
-
Returns true if the method body is empty, that is, {}.
- isEnum() - Method in class xapi.bytecode.CtClass
-
Determines whether this object represents an enum.
- isFinal() - Method in class xapi.bytecode.ClassFile
-
Returns true if this is a final class or interface.
- isFrozen() - Method in class xapi.bytecode.CtClass
-
Returns true if the class has been loaded or written out
and thus it cannot be modified any more.
- isInterface() - Method in class xapi.bytecode.ClassFile
-
Returns true if this is an interface.
- isInterface() - Method in class xapi.bytecode.CtClass
-
Determines whether this object represents a class or an interface.
- isMember(String, String, int) - Method in class xapi.bytecode.ConstPool
-
Determines whether CONSTANT_Methodref_info,
CONSTANT_Fieldref_info, or
CONSTANT_InterfaceMethodref_info structure
at the given index represents the member with the specified
name and declaring class.
- isMethod() - Method in class xapi.bytecode.MethodInfo
-
Returns true if this is not a constructor or a class initializer (static
initializer).
- isModified() - Method in class xapi.bytecode.CtClass
-
Returns true if the definition of the class has been modified.
- isParameter() - Method in class xapi.bytecode.Descriptor.Iterator
-
Returns true if the current element is a parameter type.
- isPrimitive() - Method in class xapi.bytecode.CtClass
-
Returns true if this object represents a primitive
Java type: boolean, byte, char, short, int, long, float, double,
or void.
- isPrimitive() - Method in class xapi.bytecode.CtPrimitiveType
-
Returns true if this object represents a primitive
Java type: boolean, byte, char, short, int, long, float, double,
or void.
- isStaticInitializer() - Method in class xapi.bytecode.MethodInfo
-
Returns true if this is a class initializer (static initializer).
- isWildcard() - Method in class xapi.bytecode.SignatureAttribute.TypeArgument
-
Returns true if this type argument is a wildcard type
such as ?, ? extends String, or ? super Integer.
- iterator() - Method in class xapi.dev.scanner.ResourceCollection.FileResourceIterable
-
- iterator() - Method in class xapi.dev.scanner.ResourceCollection
-
- iterator() - Method in class xapi.dev.scanner.ResourceCollection.JarResourceIterable
-
- tableLength() - Method in class xapi.bytecode.InnerClassesAttribute
-
Returns number_of_classes.
- tag - Static variable in class xapi.bytecode.AnnotationDefaultAttribute
-
The name of the AnnotationDefault attribute.
- tag - Static variable in class xapi.bytecode.ConstantAttribute
-
The name of this attribute "ConstantValue".
- tag - Static variable in class xapi.bytecode.InnerClassesAttribute
-
The name of this attribute "InnerClasses".
- tag - Static variable in class xapi.bytecode.SignatureAttribute
-
The name of this attribute "Signature".
- THIS - Static variable in class xapi.bytecode.ConstPool
-
Represents the class using this constant pool table.
- toAnnotationType(ClassLoader, ClassPool) - Method in class xapi.bytecode.Annotation
-
Constructs an annotation-type object representing this annotation.
- toArrayComponent(String, int) - Static method in class xapi.bytecode.Descriptor
-
Returns the descriptor of the type of the array component.
- toClassName(String) - Static method in class xapi.bytecode.Descriptor
-
Converts to a Java class name from a descriptor.
- toClassSignature(String) - Static method in class xapi.bytecode.SignatureAttribute
-
Parses the given signature string as a class signature.
- toCtClass(String, ClassPool) - Static method in class xapi.bytecode.Descriptor
-
Returns a CtClass object representing the type
specified by the given descriptor.
- toFieldSignature(String) - Static method in class xapi.bytecode.SignatureAttribute
-
Parses the given signature string as a field type signature.
- toJavaName(String) - Static method in class xapi.bytecode.ClassMap
-
Converts a class name from the internal representation used in
the JVM to the normal one used in Java.
- toJavaName(String) - Static method in class xapi.bytecode.Descriptor
-
Converts a class name from the internal representation used in
the JVM to the normal one used in Java.
- toJvmName(String) - Static method in class xapi.bytecode.ClassMap
-
Converts a class name into the internal representation used in
the JVM.
- toJvmName(String) - Static method in class xapi.bytecode.Descriptor
-
Converts a class name into the internal representation used in
the JVM.
- toJvmName(CtClass) - Static method in class xapi.bytecode.Descriptor
-
Returns the internal representation of the class name in the
JVM.
- toMethodSignature(String) - Static method in class xapi.bytecode.SignatureAttribute
-
Parses the given signature string as a method type signature.
- toString() - Method in class xapi.bytecode.Annotation
-
Returns a string representation of the annotation.
- toString() - Method in class xapi.bytecode.AnnotationDefaultAttribute
-
Returns a string representation of this object.
- toString() - Method in class xapi.bytecode.AnnotationsAttribute
-
Returns a string representation of this object.
- toString() - Method in class xapi.bytecode.ArrayMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.BooleanMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.ByteMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.CharMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.ClassClassPath
-
- toString() - Method in class xapi.bytecode.ClassMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.ClassPool
-
Returns the class search path.
- toString() - Method in class xapi.bytecode.CtClass
-
Converts the object to a string.
- toString() - Method in class xapi.bytecode.CtField
-
Returns a String representation of the object.
- toString() - Method in class xapi.bytecode.CtMember
-
- toString(String) - Static method in class xapi.bytecode.Descriptor
-
Returns a human-readable representation of the
given descriptor.
- toString() - Method in class xapi.bytecode.DoubleMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.EnumMemberValue
-
- toString() - Method in class xapi.bytecode.FieldInfo
-
Returns a string representation of the object.
- toString() - Method in class xapi.bytecode.FloatMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.IntegerMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.LongMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.MethodInfo
-
Returns a string representation of the object.
- toString() - Method in class xapi.bytecode.ShortMemberValue
-
Obtains the string representation of this object.
- toString() - Method in class xapi.bytecode.SignatureAttribute.ArrayType
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.SignatureAttribute.BaseType
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.SignatureAttribute.ClassSignature
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.SignatureAttribute.ClassType
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.SignatureAttribute.MethodSignature
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.SignatureAttribute.TypeArgument
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.SignatureAttribute.TypeParameter
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.SignatureAttribute.TypeVariable
-
Returns the string representation.
- toString() - Method in class xapi.bytecode.StringMemberValue
-
Obtains the string representation of this object.