JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode.bytes
Interface ClassBytes

All Superinterfaces:
Bytes
All Known Subinterfaces:
PrimitiveBytes

public interface ClassBytes
extends Bytes

Contains the bytecode information for a class

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Method Summary
 ClassLoader getClassLoader()
          Gets the classloader for the class
 ClassBytes getComponentType()
          Get the component type for an array class.
 ConstructorBytes[] getDeclaredConstructorBytes()
          Get the constuctors declared in this class
 FieldBytes[] getDeclaredFieldBytes()
          Get the fields declared in this class
 MethodBytes[] getDeclaredMethodBytes()
          Get the methods declared in this class
 String[] getInterfaceJvmNames()
          Get the JVM names of the interfaces
 String[] getInterfaceTypeInfoNames()
          Get the TypeInfo names of the interfaces
 String getJvmName()
          Gets the JVM name of this class, e.g.
 PrimitiveBytes getPrimitive()
          Get the primitive type if this is one
 String getSuperClassJvmName()
          Get the JVM name of the superclass
 String getSuperClassTypeInfoName()
          Get the TypeInfo name of the superclass
 String getTypeInfoName()
          Gets the TypeInfo name of this class, e.g.
 boolean isAnnotation()
          Check if this class is an annotation
 boolean isEnum()
          Check if this class is an enum
 boolean isInterface()
          Check if this class is an interface
 
Methods inherited from interface org.jboss.reflect.plugins.bytecode.bytes.Bytes
getAnnotations, getGenericSignature, getModifiers
 

Method Detail

getPrimitive

PrimitiveBytes getPrimitive()
Get the primitive type if this is one

Returns:
the primitive type if this is a primitive type or null otherwise

getJvmName

String getJvmName()
Gets the JVM name of this class, e.g. org/jboss/test/SomeClass

Returns:
the JVM name
See Also:
getTypeInfoName()

getTypeInfoName

String getTypeInfoName()
Gets the TypeInfo name of this class, e.g. org.jboss.test.SomeClass

Returns:
the TypeInfo name
See Also:
getJvmName()

getClassLoader

ClassLoader getClassLoader()
Gets the classloader for the class

Returns:
the classloader

isInterface

boolean isInterface()
Check if this class is an interface

Returns:
true if it is an interface

isEnum

boolean isEnum()
Check if this class is an enum

Returns:
true if it is an enum

isAnnotation

boolean isAnnotation()
Check if this class is an annotation

Returns:
true if it is an annotation

getSuperClassJvmName

String getSuperClassJvmName()
Get the JVM name of the superclass

Returns:
the superclass name or null if there is no superclass
See Also:
getJvmName()

getSuperClassTypeInfoName

String getSuperClassTypeInfoName()
Get the TypeInfo name of the superclass

Returns:
the superclass name or null if there is no superclass
See Also:
getTypeInfoName()

getInterfaceJvmNames

String[] getInterfaceJvmNames()
Get the JVM names of the interfaces

Returns:
the interface names, or an empty array if there are no interfaces
See Also:
getJvmName()

getInterfaceTypeInfoNames

String[] getInterfaceTypeInfoNames()
Get the TypeInfo names of the interfaces

Returns:
the interface names, or an empty array if there are no interfaces
See Also:
getTypeInfoName()

getDeclaredFieldBytes

FieldBytes[] getDeclaredFieldBytes()
Get the fields declared in this class

Returns:
the fields, or an empty array if there are no fields

getDeclaredConstructorBytes

ConstructorBytes[] getDeclaredConstructorBytes()
Get the constuctors declared in this class

Returns:
the constructors, or an empty array if there are no constructors

getDeclaredMethodBytes

MethodBytes[] getDeclaredMethodBytes()
Get the methods declared in this class

Returns:
the methods, or an empty array if there are no methods

getComponentType

ClassBytes getComponentType()
Get the component type for an array class. If this class is not an array return null

Returns:
the component type if this class is an array

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.