Back to index

wims  3.65+svn20090927
Public Member Functions | Package Functions | Static Package Functions | Package Attributes | Static Package Attributes | Private Attributes
org.javia.arity.Symbol Class Reference
Collaboration diagram for org.javia.arity.Symbol:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean equals (Object other)
int hashCode ()
boolean equals (Object other)
int hashCode ()

Package Functions

 Symbol (String name, int arity, byte op)
 Symbol (String name, Function fun)
 Symbol (String name, double value)
boolean isEmpty ()
Symbol setKey (String name, int arity)
 Symbol (String name, int arity, byte op)
 Symbol (String name, Function fun)
 Symbol (String name, double value)
boolean isEmpty ()
Symbol setKey (String name, int arity)

Static Package Functions

static Symbol newEmpty (Symbol s)
static Symbol newEmpty (Symbol s)

Package Attributes

byte op
Function fun
double value = 0

Static Package Attributes

static final int CONST_ARITY = -3

Private Attributes

String name
int arity

Detailed Description

Definition at line 19 of file Symbol.java.


Constructor & Destructor Documentation

org.javia.arity.Symbol.Symbol ( String  name,
int  arity,
byte  op 
) [inline, package]

Definition at line 29 of file Symbol.java.

                                            {
        setKey(name, arity);
        this.op = op;        
    }

Here is the call graph for this function:

Here is the caller graph for this function:

org.javia.arity.Symbol.Symbol ( String  name,
Function  fun 
) [inline, package]

Definition at line 34 of file Symbol.java.

                                      {
        setKey(name, fun.arity());
        this.fun = fun;
    }

Here is the call graph for this function:

org.javia.arity.Symbol.Symbol ( String  name,
double  value 
) [inline, package]

Definition at line 39 of file Symbol.java.

                                      {
        setKey(name, CONST_ARITY);
        this.value = value;
    }

Here is the call graph for this function:

org.javia.arity.Symbol.Symbol ( String  name,
int  arity,
byte  op 
) [inline, package]

Definition at line 29 of file Symbol.java.

                                            {
        setKey(name, arity);
        this.op = op;        
    }

Here is the call graph for this function:

org.javia.arity.Symbol.Symbol ( String  name,
Function  fun 
) [inline, package]

Definition at line 34 of file Symbol.java.

                                      {
        setKey(name, fun.arity());
        this.fun = fun;
    }

Here is the call graph for this function:

org.javia.arity.Symbol.Symbol ( String  name,
double  value 
) [inline, package]

Definition at line 39 of file Symbol.java.

                                      {
        setKey(name, CONST_ARITY);
        this.value = value;
    }

Here is the call graph for this function:


Member Function Documentation

boolean org.javia.arity.Symbol.equals ( Object  other) [inline]

Definition at line 58 of file Symbol.java.

                                        {
        Symbol symbol = (Symbol) other;
        return name.equals(symbol.name) && arity == symbol.arity;
    }

Here is the call graph for this function:

boolean org.javia.arity.Symbol.equals ( Object  other) [inline]

Definition at line 58 of file Symbol.java.

                                        {
        Symbol symbol = (Symbol) other;
        return name.equals(symbol.name) && arity == symbol.arity;
    }

Here is the call graph for this function:

Definition at line 63 of file Symbol.java.

                          {
        return name.hashCode() + arity;
    }

Definition at line 63 of file Symbol.java.

                          {
        return name.hashCode() + arity;
    }
boolean org.javia.arity.Symbol.isEmpty ( ) [inline, package]

Definition at line 48 of file Symbol.java.

                      {
        return op == 0 && fun == null && value == 0;
    }

Here is the caller graph for this function:

boolean org.javia.arity.Symbol.isEmpty ( ) [inline, package]

Definition at line 48 of file Symbol.java.

                      {
        return op == 0 && fun == null && value == 0;
    }
static Symbol org.javia.arity.Symbol.newEmpty ( Symbol  s) [inline, static, package]

Definition at line 44 of file Symbol.java.

                                     {
        return new Symbol(s.name, s.arity, (byte)0);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

static Symbol org.javia.arity.Symbol.newEmpty ( Symbol  s) [inline, static, package]

Definition at line 44 of file Symbol.java.

                                     {
        return new Symbol(s.name, s.arity, (byte)0);
    }

Here is the call graph for this function:

Symbol org.javia.arity.Symbol.setKey ( String  name,
int  arity 
) [inline, package]

Definition at line 52 of file Symbol.java.

                                          {
        this.name = name;
        this.arity = arity;
        return this;
    }

Here is the caller graph for this function:

Symbol org.javia.arity.Symbol.setKey ( String  name,
int  arity 
) [inline, package]

Definition at line 52 of file Symbol.java.

                                          {
        this.name = name;
        this.arity = arity;
        return this;
    }

Member Data Documentation

Definition at line 23 of file Symbol.java.

static final int org.javia.arity.Symbol.CONST_ARITY = -3 [static, package]

Definition at line 20 of file Symbol.java.

Definition at line 26 of file Symbol.java.

String org.javia.arity.Symbol.name [private]

Definition at line 22 of file Symbol.java.

byte org.javia.arity.Symbol.op [package]

Definition at line 25 of file Symbol.java.

double org.javia.arity.Symbol.value = 0 [package]

Definition at line 27 of file Symbol.java.


The documentation for this class was generated from the following files: