|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quasiliteral.term.QuasiBuilderAdaptor
Untamed: Wraps an AstroBuilder
to pretend to be of type
QuasiBuilder
.
This kludge exists only until we switch to Antlr, and make use of its support for grammar inheritance. Until then, the one grammar, term.y, must support both literal and quasi-literal term trees, so it is therefore defined in terms of the larger subtype -- QuasiBuilder.
Field Summary | |
static QuasiBuilder |
FOR_TERMS
Enabled: Builds Term trees according to the term.y grammar |
private AstroBuilder |
myBuilder
|
Constructor Summary | |
QuasiBuilderAdaptor(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
Constructor Detail |
public QuasiBuilderAdaptor(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 |