public class JavetEntityFunction extends java.lang.Object implements IJavetEntityFunction
| Modifier and Type | Field and Description |
|---|---|
protected JSFunctionType |
jsFunctionType
The JS function type.
|
protected java.lang.String |
sourceCode
The Source code.
|
| Constructor and Description |
|---|
JavetEntityFunction()
Instantiates a new Javet entity function.
|
JavetEntityFunction(java.lang.String sourceCode)
Instantiates a new Javet entity function.
|
JavetEntityFunction(java.lang.String sourceCode,
JSFunctionType jsFunctionType)
Instantiates a new Javet entity function.
|
| Modifier and Type | Method and Description |
|---|---|
JSFunctionType |
getJSFunctionType()
Gets JS function type.
|
java.lang.String |
getSourceCode()
Gets source code.
|
void |
setJSFunctionType(JSFunctionType jsFunctionType)
Sets JS function type.
|
void |
setSourceCode(java.lang.String sourceCode)
Sets source code.
|
protected JSFunctionType jsFunctionType
protected java.lang.String sourceCode
public JavetEntityFunction()
public JavetEntityFunction(java.lang.String sourceCode,
JSFunctionType jsFunctionType)
sourceCode - the source codejsFunctionType - the js function typepublic JavetEntityFunction(java.lang.String sourceCode)
sourceCode - the source codepublic JSFunctionType getJSFunctionType()
IJavetEntityFunctiongetJSFunctionType in interface IJavetEntityFunctionpublic java.lang.String getSourceCode()
IJavetEntityFunctiongetSourceCode in interface IJavetEntityFunctionpublic void setJSFunctionType(JSFunctionType jsFunctionType)
IJavetEntityFunctionsetJSFunctionType in interface IJavetEntityFunctionjsFunctionType - the JS function typepublic void setSourceCode(java.lang.String sourceCode)
IJavetEntityFunctionsetSourceCode in interface IJavetEntityFunctionsourceCode - the source code