jfun.yan
Class ParameterEntry

java.lang.Object
  extended by jfun.yan.ParameterEntry
All Implemented Interfaces:
java.io.Serializable

public final class ParameterEntry
extends java.lang.Object
implements java.io.Serializable

This class represents a parameter in a Function object. Objects of this class may be found in the resolution trace of a YanException object to represent a frame of a parameter instantiation.

Codehaus.org.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
ParameterEntry(Function f, int pos)
          Create a ParameterEntry object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Function getFunction()
          Gets the function object.
 int getOrdinalPosition()
          Gets the ordinal position of the parameter.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterEntry

public ParameterEntry(Function f,
                      int pos)
Create a ParameterEntry object.

Parameters:
f - the function.
pos - the position of the parameter.
Method Detail

getFunction

public Function getFunction()
Gets the function object.

Returns:
the function object.

getOrdinalPosition

public int getOrdinalPosition()
Gets the ordinal position of the parameter.

Returns:
the ordinal position.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object