Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.format.pstricks.parser
Class PsObjectExpression  view PsObjectExpression download PsObjectExpression.java

java.lang.Object
  extended byjpicedt.graphic.io.parser.AbstractRegularExpression
      extended byjpicedt.format.pstricks.parser.PsObjectExpression
All Implemented Interfaces:
jpicedt.graphic.io.parser.ExpressionConstants

public class PsObjectExpression
extends jpicedt.graphic.io.parser.AbstractRegularExpression

Handles \\newpsobject{myobj}{ps_object}{par1=val1,...}, for instance \\newpsobject{myline}{psline}{linecolor=green} (param is optional, though in this case, it'd be pretty useless!)

Version:
$Id: PsObjectExpression.java,v 1.2 2002/08/05 16:44:10 reynal Exp $

Field Summary
private  jpicedt.graphic.io.parser.AbstractRegularExpression exp1
           
private  jpicedt.graphic.io.parser.AbstractRegularExpression exp2
           
private  jpicedt.graphic.io.parser.AbstractRegularExpression exp3
           
private  java.lang.String macroName
           
private  java.lang.String param
           
private  PstricksParser parser
           
private  jpicedt.graphic.io.parser.Pool pool
           
private  jpicedt.graphic.model.Element prototype
           
private  java.lang.String shape
           
 
Fields inherited from interface jpicedt.graphic.io.parser.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
PsObjectExpression(PstricksParser p, jpicedt.graphic.io.parser.Pool pl)
           
 
Method Summary
 boolean interpret(jpicedt.graphic.io.parser.Context context)
          Parses this expression, possibly using Context to fetch the String to interpret if this Expression is a leaf expression.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class jpicedt.graphic.io.parser.AbstractRegularExpression
action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pool

private jpicedt.graphic.io.parser.Pool pool

exp1

private jpicedt.graphic.io.parser.AbstractRegularExpression exp1

exp2

private jpicedt.graphic.io.parser.AbstractRegularExpression exp2

exp3

private jpicedt.graphic.io.parser.AbstractRegularExpression exp3

macroName

private java.lang.String macroName

shape

private java.lang.String shape

param

private java.lang.String param

parser

private PstricksParser parser

prototype

private jpicedt.graphic.model.Element prototype
Constructor Detail

PsObjectExpression

public PsObjectExpression(PstricksParser p,
                          jpicedt.graphic.io.parser.Pool pl)
Method Detail

interpret

public boolean interpret(jpicedt.graphic.io.parser.Context context)
                  throws jpicedt.graphic.io.parser.ParserException
Description copied from class: jpicedt.graphic.io.parser.AbstractRegularExpression
Parses this expression, possibly using Context to fetch the String to interpret if this Expression is a leaf expression.


toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).