All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.PredefinedValues

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.PredefinedValues

public final class PredefinedValues
extends Jaja
This class exports many predefined values among which are all the predefined procedures (cons, car, display ...). In a sense, this class represents the global immutable predefined environment of Scheme.

History: These values were previously in Jaja.java but then any Value instance had a 'cons', a 'car' or a 'display' static field which is needless and at least confusing.

Hint: You may use these functions through the Jaja invocation protocol. For instance, you may write

    PredefinedValues.cons.invoke(aValue, anotherValue) 

Note 1: This class uses internal classes, a feature of Java 1.1.

Note 2: These values are not kept in Boxes since these variables are immutable. The original name in Scheme is also recorded in the value to help debugging. At this point you should distinguish three different meanings for 'car':

@see Procedure


Variable Index

 o apply
 o booleanp
 o callep
 o car
 o cdr
 o char_to_integer
 o charp
 o close_input_port
 o close_output_port
 o cons
 o current_input_port
 o current_output_port
 o detach
 o diagnose
 o display
 o divide
 o eofp
 o eqnp
 o eqp
 o exit
 o fixnump
 o floatnump
 o gep
 o gtp
 o integer_to_char
 o lep
 o list
 o ltp
 o make_string
 o make_vector
 o minus
 o modulo
 o newline
 o nullp
 o numberp
 o oblist
 o open_input_file
 o open_output_file
 o pairp
 o plus
 o procedurep
 o quotient
 o read
 o remainder
 o set_car
 o set_cdr
 o string
 o string_length
 o string_ref
 o string_set
 o string_to_symbol
 o stringp
 o symbol_to_string
 o symbolp
 o times
 o vector
 o vector_length
 o vector_ref
 o vector_set
 o vectorp
 o write

Constructor Index

 o PredefinedValues()

Variables

 o car
 public static Subr1 car
 o cdr
 public static Subr1 cdr
 o cons
 public static Subr2 cons
 o eqp
 public static Subr2 eqp
 o pairp
 public static Subr1 pairp
 o set_car
 public static Subr2 set_car
 o set_cdr
 public static Subr2 set_cdr
 o nullp
 public static Subr1 nullp
 o symbolp
 public static Subr1 symbolp
 o stringp
 public static Subr1 stringp
 o numberp
 public static Subr1 numberp
 o fixnump
 public static Subr1 fixnump
 o floatnump
 public static Subr1 floatnump
 o procedurep
 public static Subr1 procedurep
 o eofp
 public static Subr1 eofp
 o plus
 public static SubrN plus
 o minus
 public static Subr2 minus
 o times
 public static SubrN times
 o divide
 public static Subr2 divide
 o quotient
 public static Subr2 quotient
 o remainder
 public static Subr2 remainder
 o modulo
 public static Subr2 modulo
 o lep
 public static Subr2 lep
 o gep
 public static Subr2 gep
 o eqnp
 public static Subr2 eqnp
 o ltp
 public static Subr2 ltp
 o gtp
 public static Subr2 gtp
 o display
 public static SubrN display
 o newline
 public static SubrN newline
 o list
 public static SubrN list
 o apply
 public static SubrN apply
 o vectorp
 public static Subr1 vectorp
 o make_vector
 public static SubrN make_vector
 o vector
 public static SubrN vector
 o vector_ref
 public static Subr2 vector_ref
 o vector_set
 public static Subr3 vector_set
 o vector_length
 public static Subr1 vector_length
 o string_ref
 public static Subr2 string_ref
 o string_set
 public static Subr3 string_set
 o string_length
 public static Subr1 string_length
 o make_string
 public static SubrN make_string
 o string
 public static SubrN string
 o write
 public static SubrN write
 o booleanp
 public static Subr1 booleanp
 o symbol_to_string
 public static Subr1 symbol_to_string
 o string_to_symbol
 public static Subr1 string_to_symbol
 o charp
 public static Subr1 charp
 o integer_to_char
 public static Subr1 integer_to_char
 o char_to_integer
 public static Subr1 char_to_integer
 o read
 public static SubrN read
 o current_input_port
 public static Subr0 current_input_port
 o current_output_port
 public static Subr0 current_output_port
 o open_input_file
 public static Subr1 open_input_file
 o open_output_file
 public static Subr1 open_output_file
 o close_input_port
 public static Subr1 close_input_port
 o close_output_port
 public static Subr1 close_output_port
 o callep
 public static Subr1 callep
 o exit
 public static Subr1 exit
 o oblist
 public static Subr0 oblist
 o detach
 public static SubrN detach
 o diagnose
 public static Subr2 diagnose

Constructors

 o PredefinedValues
 public PredefinedValues()

All Packages  Class Hierarchy  This Package  Previous  Next  Index