|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectru.biosoft.access.DataElementSupport
ru.biosoft.plugins.javascript.FunctionInfo
Provides JavaScript function description, and description for its arguments,
throwable exception and returned value. Generally function info extracts the information
from the ru.biosoft.plugins.javascript.function extension point.
FunctionInfo implements DataElement interface,
so it can be shown in repository tree.
JScriptContext.defineFunction(org.eclipse.core.runtime.IConfigurationElement, org.mozilla.javascript.Context, org.mozilla.javascript.ScriptableObject, ru.biosoft.access.DataCollection)| Nested Class Summary | |
static class |
FunctionInfo.Argument
This class describes the JavaScript function argument. |
static class |
FunctionInfo.ArgumentBeanInfo
|
static class |
FunctionInfo.Example
Exampe of function usage. |
static class |
FunctionInfo.ExampleBeanInfo
|
static class |
FunctionInfo.Exception
Describes exeptions throwable by function. |
static class |
FunctionInfo.ExceptionBeanInfo
|
class |
FunctionInfo.ReturnedValue
Describes the returned value. |
static class |
FunctionInfo.ReturnedValueBeanInfo
|
| Field Summary | |
protected FunctionInfo.Argument[] |
arguments
Function arguments description. |
protected java.lang.String |
description
The function description |
protected FunctionInfo.Example[] |
examples
Examples of function usage. |
protected FunctionInfo.Exception[] |
exceptions
Function exception description. |
protected FunctionInfo.ReturnedValue |
returnedValue
The returned value type and description. |
| Constructor Summary | |
FunctionInfo(java.lang.String name,
DataCollection parent)
Creates info for the specified JavaScript function. |
|
| Method Summary | |
protected void |
endSection(java.lang.StringBuffer buf,
boolean isHtml)
|
java.lang.String |
generateHtml()
|
FunctionInfo.Argument[] |
getArguments()
|
java.lang.String |
getDescription()
|
FunctionInfo.Example[] |
getExamples()
|
FunctionInfo.Exception[] |
getExceptions()
|
protected java.lang.String |
getFunctionDeclaration(boolean isHtml)
|
FunctionInfo.ReturnedValue |
getReturnedValue()
|
boolean |
isExamplesHidden()
|
boolean |
isExceptionsHidden()
|
void |
setArguments(FunctionInfo.Argument[] arguments)
|
void |
setDescription(java.lang.String description)
|
void |
setExamples(FunctionInfo.Example[] examples)
|
void |
setExceptions(FunctionInfo.Exception[] exceptions)
|
void |
setReturnedValue(FunctionInfo.ReturnedValue returnedValue)
|
protected void |
startSection(java.lang.StringBuffer buf,
java.lang.String section,
boolean isHtml)
|
java.lang.String |
toString()
|
java.lang.String |
toString(boolean isHtml)
|
| Methods inherited from class ru.biosoft.access.DataElementSupport |
getName, getOrigin, registerConstructorWithBadEqual |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String description
protected FunctionInfo.Argument[] arguments
protected FunctionInfo.ReturnedValue returnedValue
protected FunctionInfo.Exception[] exceptions
protected FunctionInfo.Example[] examples
| Constructor Detail |
public FunctionInfo(java.lang.String name,
DataCollection parent)
name - - JavaScript function nameparent - DataCollection to which this function belongs.
Generally it is plugins/Javascript/functions.| Method Detail |
public java.lang.String toString()
toString in class DataElementSupportpublic java.lang.String generateHtml()
public java.lang.String toString(boolean isHtml)
protected void startSection(java.lang.StringBuffer buf,
java.lang.String section,
boolean isHtml)
protected void endSection(java.lang.StringBuffer buf,
boolean isHtml)
protected java.lang.String getFunctionDeclaration(boolean isHtml)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public FunctionInfo.Argument[] getArguments()
public void setArguments(FunctionInfo.Argument[] arguments)
public FunctionInfo.ReturnedValue getReturnedValue()
public void setReturnedValue(FunctionInfo.ReturnedValue returnedValue)
public FunctionInfo.Exception[] getExceptions()
public void setExceptions(FunctionInfo.Exception[] exceptions)
public FunctionInfo.Example[] getExamples()
public void setExamples(FunctionInfo.Example[] examples)
public boolean isExceptionsHidden()
public boolean isExamplesHidden()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||