| java.lang.Object gnu.mapping.Procedure gnu.mapping.ProcedureN gnu.mapping.MethodProc gnu.mapping.CpsProcedure gnu.expr.Keyword
Constructor Summary | |
public | Keyword() |
hashCode | public int hashCode()(Code) | | |
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 vals[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. |
Methods inherited from gnu.mapping.Procedure | public void apply(Runnable ctx) throws Throwable(Code)(Java Doc) abstract public Object apply0() throws Throwable(Code)(Java Doc) abstract public Object apply1(Object arg1) throws Throwable(Code)(Java Doc) abstract public Object apply2(Object arg1, Object arg2) throws Throwable(Code)(Java Doc) abstract public Object apply3(Object arg1, Object arg2, Object arg3) throws Throwable(Code)(Java Doc) abstract public Object apply4(Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable(Code)(Java Doc) abstract public Object applyN(Object[] args) throws Throwable(Code)(Java Doc) public static void checkArgCount(Procedure proc, int argCount)(Code)(Java Doc) public String getName()(Code)(Java Doc) public Object getProperty(Object key, Object defaultValue)(Code)(Java Doc) public Procedure getSetter()(Code)(Java Doc) final public int maxArgs()(Code)(Java Doc) final public int minArgs()(Code)(Java Doc) final public String name()(Code)(Java Doc) public int numArgs()(Code)(Java Doc) public Object removeProperty(Object key)(Code)(Java Doc) public void set0(Object result) throws Throwable(Code)(Java Doc) public void set1(Object arg1, Object value) throws Throwable(Code)(Java Doc) public void setN(Object[] args) throws Throwable(Code)(Java Doc) final public void setName(String name)(Code)(Java Doc) public synchronized void setProperty(Object key, Object value)(Code)(Java Doc) public static Object[] setProperty(Object[] properties, Object key, Object value)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|