frysk.value
Class FunctionType

java.lang.Object
  extended by frysk.value.Type
      extended by frysk.value.FunctionType

public class FunctionType
extends Type

Type for a function.


Field Summary
(package private)  ArrayList parmNames
           
(package private)  ArrayList parmTypes
           
(package private)  Type returnType
           
 
Constructor Summary
FunctionType(String name, Type returnType)
          Create an FunctionType
 
Method Summary
 void addParameter(Type member, String name)
           
(package private)  void toPrint(PrintWriter writer, Location location, ByteBuffer memory, Format format, int indent)
          Print Location as Type in user-readable form; use Format to print basic types.
 void toPrint(StringBuilder stringBuilder, int indent)
          Print this Type after indenting INDENT spaces.
 
Methods inherited from class frysk.value.Type
addressOf, assign, completeFollowSym, completeMember, dereference, getALU, getALU, getALU, getALU, getALU, getALU, getName, getSize, getSliceType, getType, getUltimateType, index, member, pack, slice, toPrint, toPrint, toPrintBrief, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

returnType

Type returnType

parmTypes

ArrayList parmTypes

parmNames

ArrayList parmNames
Constructor Detail

FunctionType

public FunctionType(String name,
                    Type returnType)
Create an FunctionType

Method Detail

toPrint

void toPrint(PrintWriter writer,
             Location location,
             ByteBuffer memory,
             Format format,
             int indent)
Description copied from class: Type
Print Location as Type in user-readable form; use Format to print basic types. If needed, and when memory is non-NULL, it can be used for dereferencing pointers. Indent before printing.

Specified by:
toPrint in class Type

toPrint

public void toPrint(StringBuilder stringBuilder,
                    int indent)
Description copied from class: Type
Print this Type after indenting INDENT spaces.

Specified by:
toPrint in class Type
Parameters:
stringBuilder - TODO

addParameter

public void addParameter(Type member,
                         String name)