frysk.value
Class Format

java.lang.Object
  extended by frysk.value.Format

public abstract class Format
extends Object

Formats a base type sending it to the printer.


Field Summary
static Format BINARY
           
static Format DECIMAL
           
static Format HEXADECIMAL
           
static Format NATURAL
           
static Format OCTAL
           
 
Constructor Summary
Format()
           
 
Method Summary
(package private) abstract  void print(PrintWriter writer, Location location, FloatingPointType type)
          Print the floating-point at LOCATION.
(package private) abstract  void print(PrintWriter writer, Location location, IntegerType type)
          Print the integer at LOCATION.
(package private) abstract  void print(PrintWriter writer, Location location, PointerType type)
          Print the pointer at location.
private static void printBinary(PrintWriter writer, Location location, ByteOrder order)
           
private static void printDecimal(PrintWriter writer, Location location, ByteOrder order)
           
private static void printFloatingPoint(PrintWriter writer, Location location, FloatingPointType type)
           
private static void printHexadecimal(PrintWriter writer, Location location, ByteOrder order)
           
private static void printHexadecimalFP(PrintWriter writer, Location location, FloatingPointType type)
           
private static void printOctal(PrintWriter writer, Location location, ByteOrder order)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NATURAL

public static final Format NATURAL

HEXADECIMAL

public static final Format HEXADECIMAL

OCTAL

public static final Format OCTAL

DECIMAL

public static final Format DECIMAL

BINARY

public static final Format BINARY
Constructor Detail

Format

public Format()
Method Detail

printDecimal

private static void printDecimal(PrintWriter writer,
                                 Location location,
                                 ByteOrder order)

printHexadecimal

private static void printHexadecimal(PrintWriter writer,
                                     Location location,
                                     ByteOrder order)

printOctal

private static void printOctal(PrintWriter writer,
                               Location location,
                               ByteOrder order)

printBinary

private static void printBinary(PrintWriter writer,
                                Location location,
                                ByteOrder order)

printFloatingPoint

private static void printFloatingPoint(PrintWriter writer,
                                       Location location,
                                       FloatingPointType type)

printHexadecimalFP

private static void printHexadecimalFP(PrintWriter writer,
                                       Location location,
                                       FloatingPointType type)

print

abstract void print(PrintWriter writer,
                    Location location,
                    IntegerType type)
Print the integer at LOCATION.


print

abstract void print(PrintWriter writer,
                    Location location,
                    FloatingPointType type)
Print the floating-point at LOCATION.


print

abstract void print(PrintWriter writer,
                    Location location,
                    PointerType type)
Print the pointer at location.