org.apache.ws.jaxme.js.pattern

Class CompiledClassReflector

Implemented Interfaces:
Reflector

public class CompiledClassReflector
extends java.lang.Object
implements Reflector

Reflector for gathering information on a compiled class.

Constructor Summary

CompiledClassReflector(Class pClass)
Creates a new instance of CompiledClassReflector, reading information from the given class.
CompiledClassReflector(String pName, ClassLoader pClassLoader)
Creates a new instance of CompiledClassReflector, which loads the class named pName through pClassLoader.

Method Summary

Class
getCompiledClass()
Returns the compiled class being used to gather information.
JavaSource
getJavaSource(JavaSourceFactory pFactory)
Reads the interface methods and converts them into an instance of JavaSource.
protected JavaMethod
getMethod(JavaSource pSource, Method pMethod)
Converts the given Method into an instance of JavaSource.

Constructor Details

CompiledClassReflector

public CompiledClassReflector(Class pClass)
Creates a new instance of CompiledClassReflector, reading information from the given class.
Parameters:
pClass -

CompiledClassReflector

public CompiledClassReflector(String pName,
                              ClassLoader pClassLoader)
            throws ClassNotFoundException
Creates a new instance of CompiledClassReflector, which loads the class named pName through pClassLoader.

Method Details

getCompiledClass

public Class getCompiledClass()
Returns the compiled class being used to gather information.

getJavaSource

public JavaSource getJavaSource(JavaSourceFactory pFactory)
Reads the interface methods and converts them into an instance of JavaSource.
Specified by:
getJavaSource in interface Reflector

getMethod

protected JavaMethod getMethod(JavaSource pSource,
                               Method pMethod)
Converts the given Method into an instance of JavaSource.