Rule implementation that saves a parameter for use by a surrounding
CallMethodRule.
This parameter may be:
CallParamRule(int paramIndex, String attributeName)
CallParamRule(int paramIndex)
| Modifier and Type | Field and Description |
|---|---|
| protected final String | attributeName
The attribute from which to save the parameter value |
| protected ArrayStack | bodyTextStack
Stack is used to allow nested body text to be processed. |
| protected final boolean | fromStack
Is the parameter to be set from the stack? |
| protected final int | paramIndex
The zero-relative index of the parameter we are saving. |
| protected final int | stackIndex
The position of the object from the top of the stack |
| Access | Constructor and Description |
|---|---|
| public | CallParamRule(int
The zero-relative parameter number paramIndex)Construct a "call parameter" rule that will save the body text of this element as the parameter value. |
| public | CallParamRule(int
The zero-relative parameter number paramIndex, String The name of the attribute to save attributeName)Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin(String
the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespace namespace, String the local name if the parser is namespace aware, or just
the element name otherwise name, Attributes The attribute list for this element attributes)Overrides org. Process the start of this element. |
| public void | body(String
the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespace namespace, String the local name if the parser is namespace aware, or just
the element name otherwise name, String The body text of this element bodyText)Overrides org. Process the body text of this element. |
| public void | end(String
the namespace URI of the matching element, or an empty
string if the parser is not namespace aware or the
element has no namespace namespace, String the local name if the parser is namespace aware, or just the
element name otherwise name)Overrides org. Process any body texts now. |
| public String |
| attributeName | back to summary |
|---|---|
| protected final String attributeName The attribute from which to save the parameter value | |
| bodyTextStack | back to summary |
|---|---|
| protected ArrayStack<String> bodyTextStack Stack is used to allow nested body text to be processed. Lazy creation. | |
| fromStack | back to summary |
|---|---|
| protected final boolean fromStack Is the parameter to be set from the stack? | |
| paramIndex | back to summary |
|---|---|
| protected final int paramIndex The zero-relative index of the parameter we are saving. | |
| stackIndex | back to summary |
|---|---|
| protected final int stackIndex The position of the object from the top of the stack | |
| CallParamRule | back to summary |
|---|---|
| public CallParamRule(int paramIndex) Construct a "call parameter" rule that will save the body text of this element as the parameter value.
| |
| CallParamRule | back to summary |
|---|---|
| public CallParamRule(int paramIndex, String attributeName) Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value.
| |
| CallParamRule | back to summary |
|---|---|
| private CallParamRule(String attributeName, int paramIndex, int stackIndex, boolean fromStack) | |
| begin | back to summary |
|---|---|
| public void begin(String namespace, String name, Attributes attributes) throws Exception Overrides org. Process the start of this element.
| |
| body | back to summary |
|---|---|
| public void body(String namespace, String name, String bodyText) throws Exception Overrides org. Process the body text of this element.
| |
| end | back to summary |
|---|---|
| public void end(String namespace, String name) Overrides org. Process any body texts now.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Render a printable version of this Rule.
| |