- java.lang.Object
-
- swim.recon.ReconWriter<I,V>
-
- Direct Known Subclasses:
ReconStructureWriter
public abstract class ReconWriter<I,V> extends Object
Factory for constructing Recon writers.
-
-
Constructor Summary
Constructors Constructor Description ReconWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isAttr(I item)
boolean
isBlockSafe(Iterator<I> items)
abstract boolean
isBool(I item)
abstract boolean
isExpression(I item)
abstract boolean
isExtant(I item)
abstract boolean
isField(I item)
boolean
isIdent(I item)
boolean
isIdent(String value)
boolean
isMarkupSafe(Iterator<I> items)
abstract boolean
isNum(I item)
abstract boolean
isRecord(I item)
abstract boolean
isSlot(I item)
abstract boolean
isText(I item)
abstract boolean
isValue(I item)
abstract I
item(V value)
abstract Iterator<I>
items(I item)
abstract V
key(I item)
abstract int
precedence(I item)
int
sizeOfAbsent()
int
sizeOfAttr(V key, V value)
int
sizeOfBlock(I item)
int
sizeOfBlock(Iterator<I> items, boolean inBlock, boolean inMarkup)
abstract int
sizeOfBlockItem(I item)
abstract int
sizeOfBlockValue(V value)
int
sizeOfBool(boolean value)
int
sizeOfChildrenSelector(V then)
int
sizeOfConditionalOperator(I ifTerm, I thenTerm, I elseTerm, int precedence)
int
sizeOfData(int length)
int
sizeOfDescendantsSelector(V then)
int
sizeOfExtant()
int
sizeOfFilterSelector(V predicate, V then)
int
sizeOfGetAttrSelector(V key, V then)
int
sizeOfGetItemSelector(V index, V then)
int
sizeOfGetSelector(V key, V then)
int
sizeOfIdentitySelector()
int
sizeOfInfixOperator(I lhs, String operator, I rhs, int precedence)
int
sizeOfInvokeOperator(V func, V args)
abstract int
sizeOfItem(I item)
int
sizeOfKeysSelector(V then)
int
sizeOfLambdaFunc(V bindings, V template)
int
sizeOfLiteralSelector(I item, V then)
int
sizeOfMarkupText(I item)
int
sizeOfMarkupText(String text)
int
sizeOfNum(double value)
int
sizeOfNum(float value)
int
sizeOfNum(int value)
int
sizeOfNum(long value)
int
sizeOfNum(BigInteger value)
int
sizeOfPrefixOperator(String operator, I operand, int precedence)
int
sizeOfPrimary(V value)
int
sizeOfRecord(I item)
int
sizeOfSlot(V key, V value)
int
sizeOfText(String value)
abstract int
sizeOfThen(V then)
int
sizeOfThenChildrenSelector(V then)
int
sizeOfThenDescendantsSelector(V then)
int
sizeOfThenFilterSelector(V predicate, V then)
int
sizeOfThenGetAttrSelector(V key, V then)
int
sizeOfThenGetItemSelector(V index, V then)
int
sizeOfThenGetSelector(V key, V then)
int
sizeOfThenIdentitySelector()
int
sizeOfThenKeysSelector(V then)
int
sizeOfThenLiteralSelector(I item, V then)
int
sizeOfThenValuesSelector(V then)
int
sizeOfUint32(int value)
int
sizeOfUint64(long value)
abstract int
sizeOfValue(V value)
int
sizeOfValuesSelector(V then)
abstract String
string(I item)
abstract V
value(I item)
Writer<?,?>
writeAbsent(Output<?> output)
Writer<?,?>
writeAttr(Output<?> output, V key, V value)
Writer<?,?>
writeBlock(Output<?> output, I item)
Writer<?,?>
writeBlock(Output<?> output, Iterator<I> items, boolean inBlock, boolean inMarkup)
abstract Writer<?,?>
writeBlockItem(Output<?> output, I item)
abstract Writer<?,?>
writeBlockValue(Output<?> output, V value)
Writer<?,?>
writeBool(Output<?> output, boolean value)
Writer<?,?>
writeChildrenSelector(Output<?> output, V then)
Writer<?,?>
writeConditionalOperator(Output<?> output, I ifTerm, I thenTerm, I elseTerm, int precedence)
Writer<?,?>
writeData(Output<?> output, ByteBuffer value)
Writer<?,?>
writeDescendantsSelector(Output<?> output, V then)
Writer<?,?>
writeExtant(Output<?> output)
Writer<?,?>
writeFilterSelector(Output<?> output, V predicate, V then)
Writer<?,?>
writeGetAttrSelector(Output<?> output, V key, V then)
Writer<?,?>
writeGetItemSelector(Output<?> output, V index, V then)
Writer<?,?>
writeGetSelector(Output<?> output, V key, V then)
Writer<?,?>
writeIdentitySelector(Output<?> output)
Writer<?,?>
writeInfixOperator(Output<?> output, I lhs, String operator, I rhs, int precedence)
Writer<?,?>
writeInvokeOperator(Output<?> output, V func, V args)
abstract Writer<?,?>
writeItem(Output<?> output, I item)
Writer<?,?>
writeKeysSelector(Output<?> output, V then)
Writer<?,?>
writeLambdaFunc(Output<?> output, V bindings, V template)
Writer<?,?>
writeLiteralSelector(Output<?> output, I item, V then)
Writer<?,?>
writeMarkupText(Output<?> output, I item)
Writer<?,?>
writeMarkupText(Output<?> output, String text)
Writer<?,?>
writeNum(Output<?> output, double value)
Writer<?,?>
writeNum(Output<?> output, float value)
Writer<?,?>
writeNum(Output<?> output, int value)
Writer<?,?>
writeNum(Output<?> output, long value)
Writer<?,?>
writeNum(Output<?> output, BigInteger value)
Writer<?,?>
writePrefixOperator(Output<?> output, String operator, I operand, int precedence)
Writer<?,?>
writePrimary(Output<?> output, V value)
Writer<?,?>
writeRecord(Output<?> output, I item)
Writer<?,?>
writeSlot(Output<?> output, V key, V value)
Writer<?,?>
writeText(Output<?> output, String value)
abstract Writer<?,?>
writeThen(Output<?> output, V then)
Writer<?,?>
writeThenChildrenSelector(Output<?> output, V then)
Writer<?,?>
writeThenDescendantsSelector(Output<?> output, V then)
Writer<?,?>
writeThenFilterSelector(Output<?> output, V predicate, V then)
Writer<?,?>
writeThenGetAttrSelector(Output<?> output, V key, V then)
Writer<?,?>
writeThenGetItemSelector(Output<?> output, V index, V then)
Writer<?,?>
writeThenGetSelector(Output<?> output, V key, V then)
Writer<?,?>
writeThenIdentitySelector(Output<?> output)
Writer<?,?>
writeThenKeysSelector(Output<?> output, V then)
Writer<?,?>
writeThenLiteralSelector(Output<?> output, I item, V then)
Writer<?,?>
writeThenValuesSelector(Output<?> output, V then)
Writer<?,?>
writeUint32(Output<?> output, int value)
Writer<?,?>
writeUint64(Output<?> output, long value)
abstract Writer<?,?>
writeValue(Output<?> output, V value)
Writer<?,?>
writeValuesSelector(Output<?> output, V then)
-
-
-
Method Detail
-
isField
public abstract boolean isField(I item)
-
isAttr
public abstract boolean isAttr(I item)
-
isSlot
public abstract boolean isSlot(I item)
-
isValue
public abstract boolean isValue(I item)
-
isRecord
public abstract boolean isRecord(I item)
-
isText
public abstract boolean isText(I item)
-
isNum
public abstract boolean isNum(I item)
-
isBool
public abstract boolean isBool(I item)
-
isExpression
public abstract boolean isExpression(I item)
-
isExtant
public abstract boolean isExtant(I item)
-
precedence
public abstract int precedence(I item)
-
sizeOfItem
public abstract int sizeOfItem(I item)
-
sizeOfValue
public abstract int sizeOfValue(V value)
-
sizeOfBlockValue
public abstract int sizeOfBlockValue(V value)
-
sizeOfBlockItem
public abstract int sizeOfBlockItem(I item)
-
writeBlock
public Writer<?,?> writeBlock(Output<?> output, Iterator<I> items, boolean inBlock, boolean inMarkup)
-
sizeOfBlock
public int sizeOfBlock(I item)
-
sizeOfRecord
public int sizeOfRecord(I item)
-
sizeOfPrimary
public int sizeOfPrimary(V value)
-
sizeOfMarkupText
public int sizeOfMarkupText(I item)
-
sizeOfMarkupText
public int sizeOfMarkupText(String text)
-
sizeOfData
public int sizeOfData(int length)
-
writeData
public Writer<?,?> writeData(Output<?> output, ByteBuffer value)
-
isIdent
public boolean isIdent(I item)
-
isIdent
public boolean isIdent(String value)
-
sizeOfText
public int sizeOfText(String value)
-
sizeOfNum
public int sizeOfNum(int value)
-
sizeOfNum
public int sizeOfNum(long value)
-
sizeOfNum
public int sizeOfNum(float value)
-
sizeOfNum
public int sizeOfNum(double value)
-
sizeOfNum
public int sizeOfNum(BigInteger value)
-
writeNum
public Writer<?,?> writeNum(Output<?> output, BigInteger value)
-
sizeOfUint32
public int sizeOfUint32(int value)
-
sizeOfUint64
public int sizeOfUint64(long value)
-
sizeOfBool
public int sizeOfBool(boolean value)
-
sizeOfConditionalOperator
public int sizeOfConditionalOperator(I ifTerm, I thenTerm, I elseTerm, int precedence)
-
writeConditionalOperator
public Writer<?,?> writeConditionalOperator(Output<?> output, I ifTerm, I thenTerm, I elseTerm, int precedence)
-
writeInfixOperator
public Writer<?,?> writeInfixOperator(Output<?> output, I lhs, String operator, I rhs, int precedence)
-
writePrefixOperator
public Writer<?,?> writePrefixOperator(Output<?> output, String operator, I operand, int precedence)
-
sizeOfThen
public abstract int sizeOfThen(V then)
-
sizeOfIdentitySelector
public int sizeOfIdentitySelector()
-
sizeOfThenIdentitySelector
public int sizeOfThenIdentitySelector()
-
writeThenLiteralSelector
public Writer<?,?> writeThenLiteralSelector(Output<?> output, I item, V then)
-
writeThenGetAttrSelector
public Writer<?,?> writeThenGetAttrSelector(Output<?> output, V key, V then)
-
writeThenGetItemSelector
public Writer<?,?> writeThenGetItemSelector(Output<?> output, V index, V then)
-
sizeOfKeysSelector
public int sizeOfKeysSelector(V then)
-
sizeOfThenKeysSelector
public int sizeOfThenKeysSelector(V then)
-
sizeOfValuesSelector
public int sizeOfValuesSelector(V then)
-
sizeOfThenValuesSelector
public int sizeOfThenValuesSelector(V then)
-
sizeOfChildrenSelector
public int sizeOfChildrenSelector(V then)
-
sizeOfThenChildrenSelector
public int sizeOfThenChildrenSelector(V then)
-
sizeOfDescendantsSelector
public int sizeOfDescendantsSelector(V then)
-
sizeOfThenDescendantsSelector
public int sizeOfThenDescendantsSelector(V then)
-
writeThenDescendantsSelector
public Writer<?,?> writeThenDescendantsSelector(Output<?> output, V then)
-
writeThenFilterSelector
public Writer<?,?> writeThenFilterSelector(Output<?> output, V predicate, V then)
-
sizeOfExtant
public int sizeOfExtant()
-
sizeOfAbsent
public int sizeOfAbsent()
-
-