org.freehep.postscript
Class PSInteger

java.lang.Object
  extended by org.freehep.postscript.PSObject
      extended by org.freehep.postscript.PSSimple
          extended by org.freehep.postscript.PSNumber
              extended by org.freehep.postscript.PSInteger
All Implemented Interfaces:
Cloneable, Comparable

public class PSInteger
extends PSNumber

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

Version:
$Id: PSInteger.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann

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

Constructor Detail

PSInteger

public PSInteger(double v)

PSInteger

public PSInteger(long v)

PSInteger

public PSInteger(int v)
Method Detail

getType

public String getType()
Specified by:
getType in class PSObject

getValue

public int getValue()

getDouble

public double getDouble()
Specified by:
getDouble in class PSNumber

getInt

public int getInt()
           throws RangeException
Specified by:
getInt in class PSNumber
Throws:
RangeException

compareTo

public int compareTo(Object o)

hashCode

public int hashCode()
Specified by:
hashCode in class PSObject

equals

public boolean equals(Object o)
Specified by:
equals in class PSObject

clone

public Object clone()
Specified by:
clone in class PSObject

cvs

public String cvs()
Specified by:
cvs in class PSObject

toString

public String toString()
Overrides:
toString in class PSObject


Copyright © 2000-2006 FreeHEP. All Rights Reserved.