This class is used by the testbed. Instances of the class
are fed into the context that is set before the AST
is traversed and dynamic content generated.
PUB_STAT_STRING
public static String PUB_STAT_STRING
ob
(package private) Object ob
state
(package private) boolean state
stateint
(package private) int stateint
title
(package private) String title
allEmpty
public boolean allEmpty(Object[] list)
bang
public Integer bang()
chop
public String chop(String string,
int i)
Chop i characters off the end of a string.
string
- String to chop.i
- Number of characters to chop.
- String with processed answer.
concat
public String concat(List strings)
concat
public String concat(Object[] strings)
concat
public String concat(String a,
String b)
get
public String get(String key)
Test the ability of vel to use a get(key)
method for any object type, not just one
that implements the Map interface.
getArray
public String[] getArray()
getChild
public Child getChild()
getCustomers
public ArrayList getCustomers()
getCustomers2
public ArrayList getCustomers2()
getEmptyList
public List getEmptyList()
getFoo
public String getFoo()
throws Exception
getHashtable
public Hashtable getHashtable()
getList
public List getList()
getMenu
public Object[] getMenu()
getName
public String getName()
getPerson
public Person getPerson()
getRelSearches
public ArrayList getRelSearches()
getSearch
public Hashtable getSearch()
getStack
public Stack getStack()
getStateFalse
public boolean getStateFalse()
getStateTrue
public boolean getStateTrue()
getThrow
public String getThrow()
throws Exception
getTitle
public String getTitle()
getVector
public Vector getVector()
objConcat
public String objConcat(List objects)
objectArrayMethod
public String objectArrayMethod(Object[] o)
parse
public String parse(String a,
Object o,
String c,
String d)
put
public String put(String key,
Object o)
Test the ability of vel to use a put(key)
method for any object type, not just one
that implements the Map interface.
setBangStart
public void setBangStart(Integer i)
setState
public void setState(Boolean state)
setTitle
public void setTitle(String title)
showPerson
public String showPerson(Person person)
theAPLRules
public boolean theAPLRules()
toString
public String toString()