java.lang.Object
org.jext.dawn.CodeSnippet
org.jext.dawn.math.NegFunction
- public class NegFunction
- extends org.jext.dawn.CodeSnippet
Returns the opposite value of a numeric value.
Usage:
number neg
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NegFunction
public NegFunction()
getName
public java.lang.String getName()
- Description copied from class:
org.jext.dawn.CodeSnippet
- Returns the function name. The returned name is the name which
must be called in a script to invoke the function.
getCode
public java.lang.String getCode()
- Description copied from class:
org.jext.dawn.CodeSnippet
- Returns the function code. This code must be written in Dawn scripting language.
A code snippet can contains any Dawn function and also use the 'needs' keyword
to request the installation of a specific package.