Inheritance diagram for Interpreter:

This abstract class implements the chain of responsibility design pattern. All argoprint specific elements are handled by classes extending this class.
Definition at line 46 of file Interpreter.java.
Public Member Functions | |
| Interpreter () | |
| Interpreter (String tagName, ArgoPrintDataSource dataSource) | |
| void | setNextHandler (Interpreter nextHandler) |
| Specifies the next Interpreter in the chain of responsibility. | |
| void | setFirstHandler (Interpreter firstHandler) |
| Specifies the first Interpreter in the chain of responsibility. | |
| void | handleTag (Node tagNode, Environment env) throws Exception |
| Processes the Node or sends it to the next Interpreter. | |
Protected Member Functions | |
| abstract void | processTag (Node tagNode, Environment env) throws Exception |
| Processes a tag. | |
| boolean | canHandle (Node tagNode) |
| Checks if this Interpreter can handle this Node. | |
| Object | callDataSource (String callAttr, NamedNodeMap attributes, Environment env) throws Exception |
| Uses the attributes what and iterator to call the data source and return the value. | |
| boolean | isNodeNamed (Node node, String prefix, String localName) |
| Checks if Node has a certain name. | |
| Vector | getVector (NodeList nodeList) |
| Constructs a Vector from a NodeList. | |
| void | recurse (Vector nodes, Environment env) throws Exception |
| Recurses on every Node in the Vector. | |
Protected Attributes | |
| Interpreter | _firstHandler |
| A reference to the first handler in the chain of responsibility, for recursion. | |
| ArgoPrintDataSource | _dataSource |
| A reference to the data source to use. | |
Static Protected Attributes | |
| final String | PREFIX = "ap" |
| The namespace prefix identifying the elements that shall be processed. | |
|
|
Definition at line 63 of file Interpreter.java. |
|
||||||||||||
|
Definition at line 71 of file Interpreter.java. References Interpreter._dataSource, and Interpreter._firstHandler. |
|
||||||||||||||||
|
Uses the attributes what and iterator to call the data source and return the value.
Definition at line 146 of file Interpreter.java. References Interpreter._dataSource, ArgoPrintDataSource.caller(), and ArgoPrintIterator.currentObject(). Referenced by InterpreterIterate.processTag(), InterpreterIf.processTag(), and InterpreterCall.processTag(). |
|
|
Checks if this Interpreter can handle this Node.
Reimplemented in InterpreterDefault. Definition at line 126 of file Interpreter.java. References Interpreter.PREFIX. Referenced by Interpreter.handleTag(). |
|
|
Constructs a Vector from a NodeList.
Definition at line 188 of file Interpreter.java. Referenced by InterpreterIf.processTag(), InterpreterDefault.processTag(), and InterpreterBind.processTag(). |
|
||||||||||||
|
Processes the Node or sends it to the next Interpreter.
Definition at line 102 of file Interpreter.java. References Interpreter.canHandle(), and Interpreter.processTag(). Referenced by Main.go(), InterpreterIterate.processTag(), InterpreterBind.processTag(), and Interpreter.recurse(). |
|
||||||||||||||||
|
Checks if Node has a certain name.
Definition at line 175 of file Interpreter.java. Referenced by InterpreterIf.processTag(), and InterpreterBind.processTag(). |
|
||||||||||||
|
Processes a tag.
Implemented in InterpreterBind, InterpreterCall, InterpreterDefault, InterpreterIf, and InterpreterIterate. Referenced by Interpreter.handleTag(). |
|
||||||||||||
|
Recurses on every Node in the Vector.
Definition at line 204 of file Interpreter.java. References Interpreter._firstHandler, and Interpreter.handleTag(). Referenced by InterpreterIf.processTag(), InterpreterDefault.processTag(), and InterpreterBind.processTag(). |
|
|
Specifies the first Interpreter in the chain of responsibility.
Definition at line 92 of file Interpreter.java. References Interpreter._firstHandler. Referenced by Main.Main(). |
|
|
Specifies the next Interpreter in the chain of responsibility.
Definition at line 83 of file Interpreter.java. Referenced by Main.Main(). |
|
|
A reference to the data source to use.
Definition at line 61 of file Interpreter.java. Referenced by Interpreter.callDataSource(), and Interpreter.Interpreter(). |
|
|
A reference to the first handler in the chain of responsibility, for recursion.
Definition at line 57 of file Interpreter.java. Referenced by Interpreter.Interpreter(), InterpreterIterate.processTag(), InterpreterBind.processTag(), Interpreter.recurse(), and Interpreter.setFirstHandler(). |
|
|
The namespace prefix identifying the elements that shall be processed.
Definition at line 50 of file Interpreter.java. Referenced by Interpreter.canHandle(), InterpreterIf.processTag(), and InterpreterBind.processTag(). |
1.3.4