public class InstanciationExpression extends LiteralExpression implements ExpressionConstants
ANY_CHAR, ANY_CHAR_EOL, ANY_SIGN, AT_LEAST, AT_MOST, DEBUG, DOUBLE, EOL, EXACTLY, INTEGER, NEGATIVE, NON_NULL, POSITIVE, STRICTLY_NEGATIVE, STRICTLY_POSITIVE, WHITE_SPACES, WHITE_SPACES_OR_EOL
Constructor and Description |
---|
InstanciationExpression(java.lang.String tag,
Element prototype,
PicAttributeSet attributes,
Pool pl) |
Modifier and Type | Method and Description |
---|---|
void |
action(ParserEvent e)
Called when the tag-string was matched ; instanciate a new element, then add it to the current PicGroup.
|
java.lang.String |
toString() |
interpret
public InstanciationExpression(java.lang.String tag, Element prototype, PicAttributeSet attributes, Pool pl)
tag
- string to be matchedprototype
- element to be cloned, then added to the current PicGroupattributes
- attribute set used to set the attributes for the newly cloned element ;
can be null, in which case the attribute set of the prototype is used (yet it's static in this case)pl
- pool used to share variable across the grammar tree.public void action(ParserEvent e)
action
in class AbstractRegularExpression
public java.lang.String toString()
toString
in class LiteralExpression
Submit a bug : syd@jpicedt.org