Map from AST to AST
Definition at line 25 of file ASTMap.java.
◆ contains()
| boolean contains |
( |
AST |
k | ) |
|
|
inline |
Checks whether the map contains the key k.
- Parameters
-
- Returns
- True if
k is a key in the map, false otherwise.
Definition at line 33 of file ASTMap.java.
34 {
35
36 return Native.astMapContains(getContext().nCtx(), getNativeObject(),
37 k.getNativeObject());
38 }
◆ erase()
Erases the key k from the map.
- Parameters
-
Definition at line 70 of file ASTMap.java.
71 {
72 Native.astMapErase(getContext().nCtx(), getNativeObject(), k.getNativeObject());
73 }
◆ find()
Finds the value associated with the key k. Remarks: This function signs an error when k is not a key in the map.
- Parameters
-
- Exceptions
-
Definition at line 48 of file ASTMap.java.
49 {
50 return new AST(getContext(), Native.astMapFind(getContext().nCtx(),
51 getNativeObject(), k.getNativeObject()));
52 }
◆ getKeys()
The keys stored in the map.
- Exceptions
-
Definition at line 96 of file ASTMap.java.
97 {
98 ASTVector av = new ASTVector(getContext(), Native.astMapKeys(getContext().nCtx(), getNativeObject()));
99 return av.ToArray();
100 }
◆ insert()
Stores or replaces a new key/value pair in the map.
- Parameters
-
| k | The key AST |
| v | The value AST |
Definition at line 59 of file ASTMap.java.
60 {
61
62 Native.astMapInsert(getContext().nCtx(), getNativeObject(), k.getNativeObject(),
63 v.getNativeObject());
64 }
◆ reset()
Removes all keys from the map.
Definition at line 78 of file ASTMap.java.
79 {
80 Native.astMapReset(getContext().nCtx(), getNativeObject());
81 }
◆ size()
◆ toString()
Retrieves a string representation of the map.
Definition at line 106 of file ASTMap.java.
107 {
108 return Native.astMapToString(getContext().nCtx(), getNativeObject());
109 }