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 MethodgetMethod()Get the Method used.ParserListenergetParserListener(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.ParserListenerFactoryGet the ParserListener for a TagValueListener.- Specified by:
getParserListenerin interfaceIndexedAnnotationDB.ParserListenerFactory- Parameters:
tvl- the TagValueListener to process- Returns:
- the ParserListener for this
-
-