org.apache.jdo.impl.enhancer.util
Class AnnotationTest
java.lang.Object
org.apache.jdo.impl.enhancer.util.Assertion
org.apache.jdo.impl.enhancer.util.Support
org.apache.jdo.impl.enhancer.LogSupport
org.apache.jdo.impl.enhancer.GenericMain
org.apache.jdo.impl.enhancer.ClassArgMain
org.apache.jdo.impl.enhancer.JdoMetaMain
org.apache.jdo.impl.enhancer.util.AnnotationTest
- public class AnnotationTest
- extends JdoMetaMain
Utility class for testing a class file for correct annotation.
- Author:
- Martin Zaun
Fields inherited from class org.apache.jdo.impl.enhancer.util.Support |
timer |
Constructor Summary |
AnnotationTest(java.io.PrintWriter out,
java.io.PrintWriter err)
|
Method Summary |
private int |
checkGetPutField(java.io.PrintWriter out,
Insn insn,
boolean jdoMethod)
|
private int |
checkInvokeStatic(java.io.PrintWriter out,
Insn insn,
boolean jdoMethod)
|
private int |
hasAnnotation(java.io.PrintWriter out,
ClassMethod method,
java.lang.String methodName)
|
static void |
main(java.lang.String[] args)
Runs this class |
private int |
parseClass(java.io.PrintWriter out)
|
protected int |
process()
Run the annotation test. |
protected int |
test(java.io.PrintWriter out,
boolean verbose,
java.util.List classNames,
java.util.List classFileNames)
|
private int |
test(java.io.PrintWriter out,
java.lang.String className,
java.lang.String classFileName)
|
private int |
testAnnotation(java.io.PrintWriter out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AFFIRMATIVE
public static final int AFFIRMATIVE
- See Also:
- Constant Field Values
NEGATIVE
public static final int NEGATIVE
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
verbose
private boolean verbose
className
private java.lang.String className
classFileName
private java.lang.String classFileName
classFile
private ClassFile classFile
AnnotationTest
public AnnotationTest(java.io.PrintWriter out,
java.io.PrintWriter err)
checkGetPutField
private int checkGetPutField(java.io.PrintWriter out,
Insn insn,
boolean jdoMethod)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
- Throws:
EnhancerMetaDataUserException
EnhancerMetaDataFatalError
checkInvokeStatic
private int checkInvokeStatic(java.io.PrintWriter out,
Insn insn,
boolean jdoMethod)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
- Throws:
EnhancerMetaDataUserException
EnhancerMetaDataFatalError
hasAnnotation
private int hasAnnotation(java.io.PrintWriter out,
ClassMethod method,
java.lang.String methodName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
- Throws:
EnhancerMetaDataUserException
EnhancerMetaDataFatalError
testAnnotation
private int testAnnotation(java.io.PrintWriter out)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
- Throws:
EnhancerMetaDataUserException
EnhancerMetaDataFatalError
parseClass
private int parseClass(java.io.PrintWriter out)
test
private int test(java.io.PrintWriter out,
java.lang.String className,
java.lang.String classFileName)
throws EnhancerMetaDataUserException,
EnhancerMetaDataFatalError
- Throws:
EnhancerMetaDataUserException
EnhancerMetaDataFatalError
test
protected int test(java.io.PrintWriter out,
boolean verbose,
java.util.List classNames,
java.util.List classFileNames)
process
protected int process()
- Run the annotation test.
- Overrides:
process
in class GenericMain
main
public static void main(java.lang.String[] args)
- Description copied from class:
JdoMetaMain
- Runs this class