All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.engine.Term
java.lang.Object
|
+----org.webmacro.engine.Term
- public abstract class Term
- extends Object
- implements Macro
A term is a string or macro that can be used as an argument to a
function, the return value of a function, an argument to a directive,
or as a term in a conditional expression. It can have any of the
following types: String (possibly composed from a list) or List.
It can get that value as the result of a variable, a variable
concatenated with a string, the return value of a function, etc.
The term class is somewhat illusory--term objects don't exist. Instead
the Term parser will create an object of the appropriate type and
return that instead.
-
Term()
-
-
evaluate(Object)
- same as out but returns a String
-
parse(ParseTool)
- Parse a term.
-
write(Writer, Object)
- Interpret the directive and write it out, using the values in
the supplied context as appropriate.
Term
public Term()
parse
public static final Object parse(ParseTool in) throws ParseException, IOException
- Parse a term. A term is a word or a quoted string, or
a variable.
- Returns:
- s a String, Variable, or QuotedString
- Throws: ParseException
- if the sytax was invalid and we could not recover
- Throws: IOException
- if we could not successfullly read the parseTool
All Packages Class Hierarchy This Package Previous Next Index