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()
IJavetEntityFunction
getJSFunctionType
in interface IJavetEntityFunction
public java.lang.String getSourceCode()
IJavetEntityFunction
getSourceCode
in interface IJavetEntityFunction
public void setJSFunctionType(JSFunctionType jsFunctionType)
IJavetEntityFunction
setJSFunctionType
in interface IJavetEntityFunction
jsFunctionType
- the JS function typepublic void setSourceCode(java.lang.String sourceCode)
IJavetEntityFunction
setSourceCode
in interface IJavetEntityFunction
sourceCode
- the source code