Package org.biojava.bio.annodb
Class IndexedAnnotationDB.StaticMethodRPFactory
java.lang.Object
org.biojava.bio.annodb.IndexedAnnotationDB.StaticMethodRPFactory
- All Implemented Interfaces:
Serializable
,IndexedAnnotationDB.ParserListenerFactory
- Enclosing class:
IndexedAnnotationDB
public static class IndexedAnnotationDB.StaticMethodRPFactory
extends Object
implements IndexedAnnotationDB.ParserListenerFactory
An implementation of ParserListenerFactory that uses a static method.
- Since:
- 1.3
- Author:
- Matthew Pocock
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStaticMethodRPFactory
(Method method) Create a new StaticMethodRPFactory for a method. -
Method Summary
Modifier and TypeMethodDescriptionGet the Method used.Get the ParserListener for a TagValueListener.
-
Constructor Details
-
StaticMethodRPFactory
Create a new StaticMethodRPFactory for a method.- Parameters:
method
- a Method to use- Throws:
IllegalArgumentException
- if the Method is not statically scoped, or does not return a ParserListener or take a single argument of type TagValueListener
-
-
Method Details
-
getMethod
Get the Method used.- Returns:
- the Method used.
-
getParserListener
Description copied from interface:IndexedAnnotationDB.ParserListenerFactory
Get the ParserListener for a TagValueListener.- Specified by:
getParserListener
in interfaceIndexedAnnotationDB.ParserListenerFactory
- Parameters:
tvl
- the TagValueListener to process- Returns:
- the ParserListener for this
-