Class InstanciationExpression

  • All Implemented Interfaces:
    ExpressionConstants

    public class InstanciationExpression
    extends LiteralExpression
    implements ExpressionConstants
    An expression that can instanciate a new Element by cloning the given graphic element when it finds a given litteral tag, then add it to the current PicGroup in the pool.
    Since:
    jpicedt 1.3
    Version:
    $Id: InstanciationExpression.java,v 1.4.2.1 2007/09/02 11:56:13 reynal Exp $
    Author:
    Sylvain Reynal
    • Constructor Detail

      • InstanciationExpression

        public InstanciationExpression​(java.lang.String tag,
                                       Element prototype,
                                       PicAttributeSet attributes,
                                       Pool pl)
        Parameters:
        tag - string to be matched
        prototype - element to be cloned, then added to the current PicGroup
        attributes - 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.