de.dante.extex.interpreter.type
Interface ComparableCode

All Known Implementing Classes:
FontCode, MacroCode, NullfontPrimitive

public interface ComparableCode

This interface descries the ability to compare the current code to some binding of a token in a context.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Method Summary
 boolean compare(Token token, Context context)
          Compare the code with some other code.
 

Method Detail

compare

public boolean compare(Token token,
                       Context context)
                throws InterpreterException
Compare the code with some other code.

Parameters:
token - the token to compare to
context - the interpreter context
Returns:
true iff the code is equivalent according to the semantics of \ifx
Throws:
InterpreterException - in case of an error