no.sesat
Class Interpreter.Context
java.lang.Object
no.sesat.Interpreter.Context
- Enclosing class:
- Interpreter
public static final class Interpreter.Context
- extends Object
Context for a function.
length
public int length()
- Returns:
- Number of arguments.
getKeywordArgument
public String getKeywordArgument(String key)
- Parameters:
key -
- Returns:
- The value of the argument if it exists, or null.
getKeywords
public Set<String> getKeywords()
- Returns:
- available keys
getArgumentArray
public String[] getArgumentArray()
- Returns:
- Copy of the parsed arguments
getArgument
public String getArgument(int index)
- Parameters:
index -
- Returns:
- argument at index
getArgumentString
public String getArgumentString()
- Returns:
- the raw argument string
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009 Schibsted Søk AS. All Rights Reserved.