se.chalmers.cs.gf.linearize.gfvalue
Class Value

java.lang.Object
  extended by se.chalmers.cs.gf.linearize.gfvalue.Value
All Implemented Interfaces:
java.lang.Comparable<Value>
Direct Known Subclasses:
Concat, Meta, Param, Pre, Record, Str, Table

public abstract class Value
extends java.lang.Object
implements java.lang.Comparable<Value>

Base class for GF values.


Constructor Summary
Value()
           
 
Method Summary
abstract
<R,A> R
accept(ValueVisitor<R,A> v, A arg)
           
 int compareTo(Value v)
          Default implementation compares the toString() values.
 boolean match(Value p)
          Check if this value matches the given pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value()
Method Detail

compareTo

public int compareTo(Value v)
Default implementation compares the toString() values.

Specified by:
compareTo in interface java.lang.Comparable<Value>

match

public boolean match(Value p)
Check if this value matches the given pattern. The default implementation compares the toString() value.


accept

public abstract <R,A> R accept(ValueVisitor<R,A> v,
                               A arg)