public class String extends BaseContainer
Constructor and Description |
---|
String()
Default constructor
|
String(String input)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
static String |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static String |
fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
java.lang.String |
get()
Gets the value
|
java.lang.String |
getName()
Gets the name of the variable
|
boolean |
isFalse()
Returns true if the container evaluates to false
|
boolean |
isTrue()
Returns true if the container evaluates to true
|
void |
modify()
Mark the value as modified.
|
void |
set(java.lang.String value)
Sets the value
|
void |
setName(KnowledgeBase kb,
java.lang.String name)
Sets the name and knowledge base being referred to
|
void |
setName(Variables vars,
java.lang.String name)
Sets the name and knowledge base being referred to
|
void |
setSettings(UpdateSettings settings)
Sets the settings for updating variables in the Knowledge Base
|
double |
toDouble()
Converts the value to a double
|
long |
toLong()
Converts the value to a long
|
java.lang.String |
toString()
Converts the value to a string
|
modifyIfFalse, modifyIfTrue
public String()
public String(String input)
input
- instance to copypublic static String fromPointer(long cptr)
cptr
- C pointer to the objectpublic static String fromPointer(long cptr, boolean shouldManage)
cptr
- C pointer to the objectshouldManage
- if true, manage the pointerpublic java.lang.String get()
public java.lang.String getName()
public void modify()
public boolean isTrue()
public boolean isFalse()
public void set(java.lang.String value)
value
- new valuepublic void setName(KnowledgeBase kb, java.lang.String name)
kb
- the knowledge base that contains the namename
- the variable namepublic void setName(Variables vars, java.lang.String name)
vars
- the variables facade that contains the namename
- the variable namepublic void setSettings(UpdateSettings settings)
settings
- the settings to use for updating the Knowledge Basepublic double toDouble()
public long toLong()
public java.lang.String toString()
public void free()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- necessary for override but unused