com.varankin.bnf.tree
Interface ParsedRule<Atom>

Type Parameters:
Atom - elementary object described by syntax.
All Superinterfaces:
java.lang.Iterable<ParsedUnit<Atom>>, ParsedUnit<Atom>

public interface ParsedRule<Atom>
extends ParsedUnit<Atom>, java.lang.Iterable<ParsedUnit<Atom>>

A parsed rule unites sequence of other parsed units. Units correspond to associated syntax rule.

Author:
© 2009 Nikolai Varankine

Field Summary
static float IDENTICAL
          Proximity value to denote exact match between objects.
static float IRRELEVANT
          Proximity value to denote no match between objects.
 
Method Summary
 MetaIdentifier id()
           
 float proximity()
          Returns identity level of parsed rule with expectation specified by syntax:
    IRRELEVANT - parsed rule does not meet expectation.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

IRRELEVANT

static final float IRRELEVANT
Proximity value to denote no match between objects.

See Also:
Constant Field Values

IDENTICAL

static final float IDENTICAL
Proximity value to denote exact match between objects.

See Also:
Constant Field Values
Method Detail

id

MetaIdentifier id()
Returns:
identifier of the syntax rule describing contents of the unit.

proximity

float proximity()

Returns identity level of parsed rule with expectation specified by syntax:

Returns:
level of proximity as number within range [IRRELEVANT,IDENTICAL].