FreeHEP API
Version current

org.freehep.postscript
Class PSNumber

java.lang.Object
  extended byorg.freehep.postscript.PSObject
      extended byorg.freehep.postscript.PSSimple
          extended byorg.freehep.postscript.PSNumber
All Implemented Interfaces:
Cloneable, Comparable
Direct Known Subclasses:
PSInteger, PSReal

public abstract class PSNumber
extends PSSimple
implements Comparable

Objects for PostScript Processor, as defined in 3.3 Data Types and Objects

Version:
$Id: PSNumber.java,v 1.2 2004/01/12 20:19:15 duns Exp $
Author:
Mark Donszelmann
Source Code:
PSNumber.java

Field Summary
 
Fields inherited from class org.freehep.postscript.PSObject
name
 
Constructor Summary
PSNumber(String name)
           
 
Method Summary
 boolean execute(OperandStack os)
           
abstract  double getDouble()
           
 float getFloat()
           
abstract  int getInt()
           
 
Methods inherited from class org.freehep.postscript.PSSimple
copy
 
Methods inherited from class org.freehep.postscript.PSObject
checkAndExecute, clone, cvs, equals, error, getType, hashCode, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

PSNumber

public PSNumber(String name)
Method Detail

getFloat

public float getFloat()

execute

public boolean execute(OperandStack os)
Specified by:
execute in class PSObject

getDouble

public abstract double getDouble()

getInt

public abstract int getInt()
                    throws RangeException
Throws:
RangeException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.