no.sesat
Class Interpreter.Context

java.lang.Object
  extended by no.sesat.Interpreter.Context
Enclosing class:
Interpreter

public static final class Interpreter.Context
extends Object

Context for a function.


Method Summary
 String getArgument(int index)
           
 String[] getArgumentArray()
           
 String getArgumentString()
           
 String getKeywordArgument(String key)
           
 Set<String> getKeywords()
           
 int length()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.