|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quasiliteral.quasiterm.QuasiMetaBuilder
Untamed: Wraps an AstroBuilder
in order to represent a quasi-term-tree in
terms of a term tree.
Field Summary | |
static QuasiBuilder |
FOR_TERMS
Enabled: Builds Term trees according to the full term.y grammar, including the quasi parts. |
private AstroTag |
myARGS
|
private AstroTag |
myAT_HOLE
|
private AstroBuilder |
myBuilder
|
private AstroTag |
myCHOICE
|
private AstroTag |
myDATA
|
private AstroTag |
myDOLLAR_HOLE
|
private AstroTag |
myGROUP
|
private AstroTag |
myID
|
private AstroTag |
myINTERLEAVE
|
private AstroTag |
myOF_TAG
|
private AstroTag |
myONE_OR_MORE
|
private AstroTag |
myOPTIONAL
|
private AstroTag |
myTERM
|
private AstroTag |
myZERO_OR_MORE
|
Constructor Summary | |
QuasiMetaBuilder(AstroBuilder builder)
Enabled: |
Method Summary | |
Astro |
atHole(Astro litInt)
Enabled: |
Astro |
bag(Object args)
Enabled: |
AstroArg |
choice(AstroArg leftArg,
AstroArg rightArg)
Enabled: |
Astro |
composite(AstroTag tag,
Object data,
SourceSpan optSpan)
Enabled: |
boolean |
doesQuasis()
Enabled: |
Astro |
dollarHole(Astro litInt)
Enabled: |
AstroSchema |
getSchema()
Enabled: |
AstroArg |
group(Object args)
Enabled: |
AstroArg |
interleave(AstroArg leftArg,
AstroArg rightArg)
Enabled: |
Astro |
leafChar(char data,
SourceSpan optSpan)
Enabled: |
Astro |
leafData(Object data,
SourceSpan optSpan)
Enabled: |
Astro |
leafFloat64(double data,
SourceSpan optSpan)
Enabled: |
Astro |
leafInteger(BigInteger data,
SourceSpan optSpan)
Enabled: |
Astro |
leafLong(long data,
SourceSpan optSpan)
Enabled: |
Astro |
leafString(String data,
SourceSpan optSpan)
Enabled: |
Astro |
leafTag(AstroTag tag,
SourceSpan optSource)
Enabled: |
Astro |
leafTwine(Twine data,
SourceSpan optSpan)
Enabled: |
Object |
list()
Enabled: |
Object |
list(AstroArg first)
Enabled: |
Object |
list(AstroArg first,
AstroArg second)
Enabled: |
Object |
list(AstroArg first,
AstroArg second,
AstroArg third)
Enabled: |
Object |
list(AstroArg first,
AstroArg second,
AstroArg third,
AstroArg fourth)
Enabled: |
AstroArg |
some(AstroArg optSub,
String quant)
Enabled: |
Astro |
start(Astro top)
Enabled: |
Astro |
taggedHole(Astro ident,
Astro functorHole)
Enabled: |
Astro |
term(Astro functor)
Enabled: |
Astro |
term(Astro functor,
Object args)
Enabled: |
String |
toString()
Suppressed: |
Astro |
tuple(Object args)
Enabled: |
Object |
unpack(Astro litString)
Enabled: |
Object |
with(Object list,
AstroArg next)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final QuasiBuilder FOR_TERMS
private final AstroBuilder myBuilder
private final AstroTag myID
private final AstroTag myDATA
private final AstroTag myTERM
private final AstroTag myARGS
private final AstroTag myOF_TAG
private final AstroTag myCHOICE
private final AstroTag myINTERLEAVE
private final AstroTag myOPTIONAL
private final AstroTag myONE_OR_MORE
private final AstroTag myZERO_OR_MORE
private final AstroTag myGROUP
private final AstroTag myDOLLAR_HOLE
private final AstroTag myAT_HOLE
Constructor Detail |
public QuasiMetaBuilder(AstroBuilder builder)
Method Detail |
public String toString()
toString
in class Object
public AstroSchema getSchema()
getSchema
in interface AstroBuilder
public Astro start(Astro top)
start
in interface AstroBuilder
public Astro leafTag(AstroTag tag, SourceSpan optSource)
leafTag
in interface AstroBuilder
public Astro composite(AstroTag tag, Object data, SourceSpan optSpan)
composite
in interface AstroBuilder
public Astro leafData(Object data, SourceSpan optSpan)
leafData
in interface AstroBuilder
public Astro leafChar(char data, SourceSpan optSpan)
leafChar
in interface AstroBuilder
public Astro leafLong(long data, SourceSpan optSpan)
leafLong
in interface AstroBuilder
public Astro leafInteger(BigInteger data, SourceSpan optSpan)
leafInteger
in interface AstroBuilder
public Astro leafFloat64(double data, SourceSpan optSpan)
leafFloat64
in interface AstroBuilder
public Astro leafString(String data, SourceSpan optSpan)
leafString
in interface AstroBuilder
public Astro leafTwine(Twine data, SourceSpan optSpan)
leafTwine
in interface AstroBuilder
public Astro term(Astro functor, Object args)
term
in interface AstroBuilder
args
- :Argspublic Astro term(Astro functor)
term
in interface AstroBuilder
public Astro tuple(Object args)
tuple
in interface AstroBuilder
public Astro bag(Object args)
bag
in interface AstroBuilder
public Object list()
list
in interface AstroBuilder
public Object list(AstroArg first)
list
in interface AstroBuilder
public Object list(AstroArg first, AstroArg second)
list
in interface AstroBuilder
public Object list(AstroArg first, AstroArg second, AstroArg third)
list
in interface AstroBuilder
public Object list(AstroArg first, AstroArg second, AstroArg third, AstroArg fourth)
list
in interface AstroBuilder
public Object with(Object list, AstroArg next)
with
in interface AstroBuilder
list
- :Args
public Object unpack(Astro litString)
unpack
in interface AstroBuilder
public boolean doesQuasis()
doesQuasis
in interface QuasiBuilder
public Astro taggedHole(Astro ident, Astro functorHole)
taggedHole
in interface QuasiBuilder
public AstroArg choice(AstroArg leftArg, AstroArg rightArg)
choice
in interface QuasiBuilder
public AstroArg interleave(AstroArg leftArg, AstroArg rightArg)
interleave
in interface QuasiBuilder
public AstroArg some(AstroArg optSub, String quant)
some
in interface QuasiBuilder
public AstroArg group(Object args)
group
in interface QuasiBuilder
args
- is a list of AstroArg.public Astro dollarHole(Astro litInt)
dollarHole
in interface QuasiBuilder
public Astro atHole(Astro litInt)
atHole
in interface QuasiBuilder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |