org.quenta.tedir.hadrian
Class HTree
java.lang.Object
org.quenta.tedir.hadrian.HTree
- Direct Known Subclasses:
- HTree.Term
public abstract class HTree
- extends Object
|
Constructor Summary |
HTree()
|
|
Method Summary |
static HTree |
choice(HTree... children)
|
static HTree |
dynamicTerm(String name,
ITerminalPredicate predicate)
|
static HTree |
empty()
|
static HTree |
extern(HTree body,
IHadrianExternHandler handler)
|
static HTree |
extern(IHadrianExternHandler name)
|
Object |
getStaticAttribute(Object key)
|
static HTree |
nonterm(Object target)
|
static HTree |
operators(HTree atom,
org.quenta.tedir.aurelius.IOperatorOrder order,
Operator... ops)
|
static HTree |
operators(HTree atom,
org.quenta.tedir.aurelius.IOperatorOrder order,
String name,
Operator... ops)
|
static HTree |
optional(HTree... child)
|
static HTree |
plus(HTree body)
|
static HTree |
plus(HTree body,
HTree sep)
|
static HTree |
register(Object name)
|
static HTree |
seq(HTree... children)
|
HTree |
setStaticAttribute(Object key,
Object value)
|
static HTree |
star(HTree body)
|
static HTree |
star(HTree body,
HTree sep)
|
static HTree |
suspend(HTree body,
ISuspendHandler name)
|
static HTree |
suspend(ISuspendHandler name)
|
HTree |
tag(Object name)
|
static org.quenta.tedir.hadrian.HTree.Tagged |
tagged(Object tag,
HTree body)
|
static HTree.Term |
term(String name)
|
static HTree.Term |
value(String name)
|
HTree
public HTree()
tag
public HTree tag(Object name)
setStaticAttribute
public HTree setStaticAttribute(Object key,
Object value)
getStaticAttribute
public Object getStaticAttribute(Object key)
empty
public static HTree empty()
register
public static HTree register(Object name)
term
public static HTree.Term term(String name)
value
public static HTree.Term value(String name)
dynamicTerm
public static HTree dynamicTerm(String name,
ITerminalPredicate predicate)
nonterm
public static HTree nonterm(Object target)
seq
public static HTree seq(HTree... children)
tagged
public static org.quenta.tedir.hadrian.HTree.Tagged tagged(Object tag,
HTree body)
operators
public static HTree operators(HTree atom,
org.quenta.tedir.aurelius.IOperatorOrder order,
Operator... ops)
operators
public static HTree operators(HTree atom,
org.quenta.tedir.aurelius.IOperatorOrder order,
String name,
Operator... ops)
choice
public static HTree choice(HTree... children)
optional
public static HTree optional(HTree... child)
suspend
public static HTree suspend(HTree body,
ISuspendHandler name)
suspend
public static HTree suspend(ISuspendHandler name)
extern
public static HTree extern(HTree body,
IHadrianExternHandler handler)
extern
public static HTree extern(IHadrianExternHandler name)
star
public static HTree star(HTree body)
star
public static HTree star(HTree body,
HTree sep)
plus
public static HTree plus(HTree body)
plus
public static HTree plus(HTree body,
HTree sep)