|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.excel4j.reflect.ReflectAddin
public class ReflectAddin
An addin implementation that uses reflection to expose functions.
| Field Summary | |
|---|---|
protected XLObjectConverter |
argMapper
|
protected java.util.Map |
attributes
|
protected ParameterNameExtractor |
pne
|
| Constructor Summary | |
|---|---|
ReflectAddin()
Creates a new ReflectAddin object. |
|
ReflectAddin(XLObjectConverter mapper)
Creates a new ReflectAddin object. |
|
| Method Summary | |
|---|---|
void |
close()
Called on shutdown. |
protected java.lang.String |
getAddinCategory()
Returns the addin category. |
protected FunctionAttributes |
getAttributes(java.lang.reflect.Method method)
Returns the function attributes for a given method. |
protected FunctionAttributes |
getAttributes(java.lang.String methodName)
Returns the function attributes for a given method name (returns the first method with the given name). |
Function[] |
getFunctions()
Get the functions. |
java.lang.String |
getLongName()
Get the addin name. |
java.lang.String |
getName()
Get the addin (short) name. |
void |
open()
Called on startup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XLObjectConverter argMapper
protected java.util.Map attributes
protected ParameterNameExtractor pne
| Constructor Detail |
|---|
public ReflectAddin()
public ReflectAddin(XLObjectConverter mapper)
mapper. - | Method Detail |
|---|
public Function[] getFunctions()
Addin
getFunctions in interface Addinpublic java.lang.String getLongName()
Addin
getLongName in interface Addinpublic java.lang.String getName()
Addin
getName in interface Addinprotected java.lang.String getAddinCategory()
protected FunctionAttributes getAttributes(java.lang.reflect.Method method)
method. -
protected FunctionAttributes getAttributes(java.lang.String methodName)
methodName. -
public void close()
Addin
close in interface Addinpublic void open()
Addin
open in interface Addin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||