public class LSPFunction
extends java.lang.Object
implements java.lang.AutoCloseable
LSPFunctor for more information on how to create
external functions.LSPFunctor| Modifier and Type | Method and Description |
|---|---|
LSPValue |
asValue()
Gets the LSPFunction as LSPValue.
|
LSPValue |
call()
Calls the function with no argument.
|
LSPValue |
call(java.util.List<LSPValue> arguments)
Calls the function with the provided arguments.
|
LSPValue |
call(LSPValue... arguments)
Calls the function with the provided arguments.
|
void |
close()
Releases the reference.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeclaredName()
Gets the name of the function.
|
int |
hashCode() |
public void close()
Releases the reference. If this function was already released, returns immediately and does nothing. Invoking any method on this object after this operation will throw an exception.
Note: Releasing a reference does not necessarily imply that the underlying function object is destroyed. It is only destroyed if no more references point to it.
close in interface java.lang.AutoCloseablepublic java.lang.String getDeclaredName()
public LSPValue call()
LSPValuepublic LSPValue call(LSPValue... arguments)
arguments - List of arguments.LSPValuepublic LSPValue call(java.util.List<LSPValue> arguments)
arguments - List of argumentsLSPValuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object