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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StaticMethodRPFactory(Method method)
Create a new StaticMethodRPFactory for a method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Method
getMethod()
Get the Method used.ParserListener
getParserListener(TagValueListener tvl)
Get the ParserListener for a TagValueListener.
-
-
-
Constructor Detail
-
StaticMethodRPFactory
public StaticMethodRPFactory(Method method) throws IllegalArgumentException
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 Detail
-
getParserListener
public ParserListener getParserListener(TagValueListener tvl)
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
-
-