| java.lang.Object gnu.mapping.Symbol gnu.expr.Keyword
Keyword | public Keyword(Namespace namespace, String name)(Code) | | Used for constructing literals (int gnu.expr.LitTable).
|
asSymbol | public Symbol asSymbol()(Code) | | Get the corresponding non-keyword symbol.
Informally, the symbol corresponding to dropping the ':'.
|
make | public static Keyword make(String name)(Code) | | Create or find a Keyword with a given name (without final ':').
Parameters: name - the print-name of the desired Keyword a Keyword with the given name, newly created iff none such exist |
searchForKeyword | public static Object searchForKeyword(Object[] vals, int offset, Object keyword)(Code) | | Search vals[0:offset-1] for a keyword.
Each key at vals[i] is followed by a value at keys[i+1].
(This is used to search for a keyword parameter in an argument list.)
Parameters: vals - the list to search in Parameters: offset - the index in vals to start the search at Parameters: keyword - the keyword to search for vals[i+1] such that vals[i]==keyword (and (i-offset) is evenand non-negative); if there is no such i, return Special.dfault. |
searchForKeyword | public static Object searchForKeyword(Object[] vals, int offset, Object keyword, Object dfault)(Code) | | Search vals[0:offset-1] for a keyword.
Each key at vals[i] is followed by a value at keys[i+1].
(This is used to search for a keyword parameter in an argument list.)
Parameters: vals - the list to search in Parameters: offset - the index in vals to start the search at Parameters: keyword - the keyword to search for Parameters: dfault - the value to return if there is no match vals[i+1] such that vals[i]==keyword (and (i-offset) is evenand non-negative); if there is no such i, return dfault. |
|
|