jfun.jaskell.ast
Class Bound

java.lang.Object
  extended byjfun.jaskell.ast.AbstractExpr
      extended byjfun.jaskell.ast.Bound
All Implemented Interfaces:
Expr, jfun.jaskell.ast.Indexed, java.io.Serializable

public final class Bound
extends jfun.jaskell.ast.AbstractExpr

Represents a use of a Binding.

Author:
Ben Yu Dec 30, 2004
See Also:
Serialized Form

Method Summary
 java.lang.Object accept(ExprVisitor v)
           
 Binding getBinding()
          Get the Binding object that this binds to.
 int getIndex()
          Get the starting index in the original source.
 Location getLocation()
          Get the location that is readable to human being.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getBinding

public Binding getBinding()
Get the Binding object that this binds to.

Returns:
Returns the binding.

accept

public java.lang.Object accept(ExprVisitor v)

toString

public java.lang.String toString()

getIndex

public int getIndex()
Description copied from interface: jfun.jaskell.ast.Indexed
Get the starting index in the original source.

Specified by:
getIndex in interface jfun.jaskell.ast.Indexed

getLocation

public Location getLocation()
Description copied from interface: jfun.jaskell.ast.Indexed
Get the location that is readable to human being.

Specified by:
getLocation in interface jfun.jaskell.ast.Indexed