Package jpicedt.format.input.pstricks
Class PSTInstanciationExpression
- java.lang.Object
-
- jpicedt.format.input.util.AbstractRegularExpression
-
- jpicedt.format.input.util.LiteralExpression
-
- jpicedt.format.input.pstricks.PSTInstanciationExpression
-
- All Implemented Interfaces:
ExpressionConstants
public class PSTInstanciationExpression extends LiteralExpression implements ExpressionConstants
Instanciates a new Element by cloning the given object, when a given tag gets found. Then adds it to the current PicGroup in the Pool (i.e.Pool.currentGroup)- Version:
- $Id: PSTInstanciationExpression.java,v 1.5.2.1 2007/09/02 11:56:12 reynal Exp $
- Author:
- Sylvain Reynal
-
-
Field Summary
-
Fields inherited from interface jpicedt.format.input.util.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 Summary
Constructors Constructor Description PSTInstanciationExpression(java.lang.String tag, Element prototype, Pool pl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction(ParserEvent e)Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation.java.lang.StringtoString()-
Methods inherited from class jpicedt.format.input.util.LiteralExpression
interpret
-
-
-
-
Constructor Detail
-
PSTInstanciationExpression
public PSTInstanciationExpression(java.lang.String tag, Element prototype, Pool pl)- Parameters:
tag- expression to be matchedprototype- element to be instanciated by cloningpl- pool where to add the instanciated element ; also used to fetch the current attribute set for PsTricks
-
-
Method Detail
-
action
public void action(ParserEvent e) throws REParserException
Description copied from class:AbstractRegularExpressionCalled in the course of the interpret operation at the end of a SUCCESSFUL interpret operation. Should be overriden by daughter classes to process proper action, e.g. set Element's attributes... Current implementation does nothing, but sending a debugging string.- Overrides:
actionin classAbstractRegularExpression- Throws:
REParserException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classLiteralExpression
-
-