public class ClassScanner extends AbstractScanner
Modifier and Type | Field and Description |
---|---|
protected javassist.CtClass |
catalogCtClass |
protected javassist.ClassPool |
classPool |
protected javassist.CtClass |
commandCtClass |
protected LifecycleContext |
context |
static org.slf4j.Logger |
log |
classLoader, rootUrlLocator
Constructor and Description |
---|
ClassScanner(LifecycleContext context) |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getSingletonAccessor(java.lang.Class scannedClass) |
boolean |
hasFunctionsAnnotation(javassist.CtClass ctClass) |
void |
scan()
Starts the scanning of the lifecycle context.
|
void |
scanConstructorFunctions(NamespaceContext namespaceContext,
java.lang.Class scannedClass) |
void |
scanInstanceFunctions(NamespaceContext namespaceContext,
java.lang.Class scannedClass) |
void |
scanNode(ScanNode node) |
void |
scanStaticFunctions(NamespaceContext namespaceContext,
java.lang.Class scannedClass) |
componentFilename, isLoadableClassFile, toClassName
public static org.slf4j.Logger log
protected LifecycleContext context
protected javassist.ClassPool classPool
protected javassist.CtClass catalogCtClass
protected javassist.CtClass commandCtClass
public ClassScanner(LifecycleContext context)
public void scan()
scan
in class AbstractScanner
public void scanNode(ScanNode node) throws ScanException
scanNode
in class AbstractScanner
ScanException
public boolean hasFunctionsAnnotation(javassist.CtClass ctClass) throws java.lang.Exception
java.lang.Exception
public java.lang.reflect.Method getSingletonAccessor(java.lang.Class scannedClass)
public void scanStaticFunctions(NamespaceContext namespaceContext, java.lang.Class scannedClass)
public void scanInstanceFunctions(NamespaceContext namespaceContext, java.lang.Class scannedClass)
public void scanConstructorFunctions(NamespaceContext namespaceContext, java.lang.Class scannedClass)
Copyright © 2013 XChain Framework. All Rights Reserved.