|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jicengine.element.ElementCompiler
org.jicengine.element.impl.StrictElementCompiler
org.jicengine.element.impl.ArrayElementCompiler
NOTE: currently, every value-element is handled as an array-element. what if the element has an action that would need some of the child-value-elements? .
Nested Class Summary | |
class |
ArrayElementCompiler.ArrayConstructor
Description of the Class |
static class |
ArrayElementCompiler.RenamedValueElement
Description of the Class |
Constructor Summary | |
ArrayElementCompiler(java.lang.String name,
Location location)
|
Method Summary | |
void |
handleChildElement(Element child)
Overrides the default handleChildElement()-procedure so that it becomes possible to handle the child-elements as elements of the array. |
Methods inherited from class org.jicengine.element.impl.StrictElementCompiler |
handleExtraChildElement |
Methods inherited from class org.jicengine.element.ElementCompiler |
createElement, elementInitialized, getConstructor, getElement, getLocation, getName, setAction, setCData, setConstructor, setId, setInstanceClass, setOverridableBy, setParameters, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ArrayElementCompiler(java.lang.String name, Location location)
Method Detail |
public void handleChildElement(Element child) throws ElementException
Overrides the default handleChildElement()-procedure so that it becomes possible to handle the child-elements as elements of the array.
every ValueElement becomes an element in the array. we have to do some tricks, though.
We rename every value-element using syntax 'this[0]', 'this[1]', 'this[2]',... with this scheme, we accomplish 3 things:
the renaming is done with wrapper-element RenamedValueElement.
handleChildElement
in class ElementCompiler
child
- Description of the Parameter
ElementException
- Description of the Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |