org.jvnet.annox.reader.resourced
Class NXConverter

java.lang.Object
  extended by org.jvnet.annox.reader.resourced.NXConverter

public class NXConverter
extends Object


Constructor Summary
NXConverter()
           
NXConverter(XAnnotationParser xannotationParser, ClassLoader classLoader)
           
 
Method Summary
 XClass convertNClass(Class<?> theClass, NClass nclass)
           
 XConstructor convertNConstructor(Class<?> theClass, NConstructor nconstructor)
           
 XField convertNField(Class<?> theClass, NField nfield)
           
 XMethod convertNMethod(Class<?> theClass, NMethod nmethod)
           
 XPackage convertNPackage(Package thePackage, NPackage npackage)
           
 XParameter convertNParameter(Class<?> parameterType, NParameter nparameter)
           
 XParameter[] convertNParameters(Class<?>[] parameterTypes, List<NParameter> nparameters)
           
protected  Class<?> getClass(Package thePackage, String name)
           
protected  ClassLoader getClassLoader()
           
protected  Constructor<?> getConstructor(Class<?> theClass, Class<?>[] arguments)
           
protected  Field getField(Class<?> theClass, String name)
           
protected  Method getMethod(Class<?> theClass, String name, Class<?>[] arguments)
           
protected  XAnnotationParser getXAnnotationParser()
           
protected  XAnnotation[] parseAnnotations(List<Element> elements)
           
protected  Class<?>[] parseArguments(String arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXConverter

public NXConverter()

NXConverter

public NXConverter(XAnnotationParser xannotationParser,
                   ClassLoader classLoader)
Method Detail

getXAnnotationParser

protected XAnnotationParser getXAnnotationParser()

getClassLoader

protected ClassLoader getClassLoader()

convertNPackage

public XPackage convertNPackage(Package thePackage,
                                NPackage npackage)
                         throws ClassNotFoundException,
                                NoSuchFieldException,
                                NoSuchMethodException,
                                AnnotationElementParseException
Throws:
ClassNotFoundException
NoSuchFieldException
NoSuchMethodException
AnnotationElementParseException

convertNClass

public XClass convertNClass(Class<?> theClass,
                            NClass nclass)
                     throws ClassNotFoundException,
                            NoSuchFieldException,
                            NoSuchMethodException,
                            AnnotationElementParseException
Throws:
ClassNotFoundException
NoSuchFieldException
NoSuchMethodException
AnnotationElementParseException

convertNField

public XField convertNField(Class<?> theClass,
                            NField nfield)
                     throws NoSuchFieldException,
                            AnnotationElementParseException
Throws:
NoSuchFieldException
AnnotationElementParseException

convertNConstructor

public XConstructor convertNConstructor(Class<?> theClass,
                                        NConstructor nconstructor)
                                 throws ClassNotFoundException,
                                        NoSuchMethodException,
                                        AnnotationElementParseException
Throws:
ClassNotFoundException
NoSuchMethodException
AnnotationElementParseException

convertNMethod

public XMethod convertNMethod(Class<?> theClass,
                              NMethod nmethod)
                       throws ClassNotFoundException,
                              NoSuchMethodException,
                              AnnotationElementParseException
Throws:
ClassNotFoundException
NoSuchMethodException
AnnotationElementParseException

convertNParameters

public XParameter[] convertNParameters(Class<?>[] parameterTypes,
                                       List<NParameter> nparameters)
                                throws AnnotationElementParseException
Throws:
AnnotationElementParseException

convertNParameter

public XParameter convertNParameter(Class<?> parameterType,
                                    NParameter nparameter)
                             throws AnnotationElementParseException
Throws:
AnnotationElementParseException

getClass

protected Class<?> getClass(Package thePackage,
                            String name)
                     throws ClassNotFoundException
Throws:
ClassNotFoundException

getField

protected Field getField(Class<?> theClass,
                         String name)
                  throws NoSuchFieldException
Throws:
NoSuchFieldException

getConstructor

protected Constructor<?> getConstructor(Class<?> theClass,
                                        Class<?>[] arguments)
                                 throws NoSuchMethodException
Throws:
NoSuchMethodException

getMethod

protected Method getMethod(Class<?> theClass,
                           String name,
                           Class<?>[] arguments)
                    throws NoSuchMethodException
Throws:
NoSuchMethodException

parseAnnotations

protected XAnnotation[] parseAnnotations(List<Element> elements)
                                  throws AnnotationElementParseException
Throws:
AnnotationElementParseException

parseArguments

protected Class<?>[] parseArguments(String arguments)
                             throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 2006-2011 Highsource. All Rights Reserved.