http://www.jpicedt.org

jpicedt.format.input.latex
Class LaTeXInstanciationExpression

java.lang.Object
  extended by jpicedt.format.input.util.AbstractRegularExpression
      extended by jpicedt.format.input.util.LiteralExpression
          extended by jpicedt.format.input.latex.LaTeXInstanciationExpression

public class LaTeXInstanciationExpression
extends LiteralExpression

instanciates a new Element by cloning the given object, when it finds the given tag, then adds it to the current PicGroup ; makes use of the PicAttributeSet associated with the ATTRIBUTES key in LaTeXParser.

Since:
jpicedt 1.3
Version:
$Id: LaTeXInstanciationExpression.java,v 1.12 2013/03/27 07:18:04 vincentb1 Exp $
Author:
Sylvain Reynal

Constructor Summary
LaTeXInstanciationExpression(String tag, Element prototype, Pool pl)
           
 
Method Summary
 void action(ParserEvent e)
          Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation.
 String toString()
           
 
Methods inherited from class jpicedt.format.input.util.LiteralExpression
interpret
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LaTeXInstanciationExpression

public LaTeXInstanciationExpression(String tag,
                                    Element prototype,
                                    Pool pl)
Parameters:
tag - tag expression to match
prototype - element to be instanciated by cloning
pl - 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)
Description copied from class: AbstractRegularExpression
Called 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:
action in class AbstractRegularExpression

toString

public String toString()
Overrides:
toString in class LiteralExpression

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org