Package manifold.api.highjump
Class Symbol
- java.lang.Object
-
- manifold.api.highjump.Symbol
-
public class Symbol extends Object
UseSymbolto manage external symbols that can be directly referenced in dynamic scripts and expressions.
-
-
Constructor Summary
Constructors Constructor Description Symbol(String uid, String name, String type)Same as:new Symbol(uid, name, type, false, null)Symbol(String uid, String name, String type, boolean readOnly, Object initialValue)Create aSymbolthat can be directly referenced in a dynamic expression or script.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetInitialValue()StringgetName()StringgetType()StringgetUid()ObjectgetValue()booleanisReadOnly()voidsetValue(Object value)
-
-
-
Constructor Detail
-
Symbol
public Symbol(String uid, String name, String type, boolean readOnly, Object initialValue)
Create aSymbolthat can be directly referenced in a dynamic expression or script. Use withHighjump.evaluate(Options).- Parameters:
uid- Qualifies thenameto uniquely identify this symbol.uidmust strictly follow Java identifier naming rules (alphanumeric and underscore chars). Can be the empty string if no further qualification is necessary.name- The name of the symbol that will be directly referenced in the script or expression.namemust strictly follow Java identifier naming rules (alphanumeric and underscore chars).type- The fully qualified name of the symbol's type, such as:java.lang.String,java.math.BigDecimal[], andjava.util.List<java.lang.String>. Note the type must be non-primitive.readOnly- If true, indicates the symbol is read-only and theinitialValueis constant.initialValue- The initial value of the symbol, may be {@code null).
-
Symbol
public Symbol(String uid, String name, String type)
Same as:new Symbol(uid, name, type, false, null)Symbol(String, String, String, boolean, Object)
-
-