public abstract class AbstractColumn extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
currentArrayIndex |
protected static int |
currentOffsetIndex |
protected int |
index |
protected Class<?> |
intermediate |
protected static int |
intermediateIndex |
protected String |
name |
protected static int |
objectIndex |
protected boolean |
optional |
protected AbstractCsvMapper<?> |
parent |
protected ValueProjection |
projection |
protected static int |
rangeIndex |
protected static int |
startIndex |
protected boolean |
trimLeadingWhitespaces |
protected boolean |
trimTrailingWhitespaces |
| Constructor and Description |
|---|
AbstractColumn(String name,
int index,
boolean optional,
boolean trimTrailingWhitespaces,
boolean trimLeadingWhitespaces) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDecrementWhileAtWhitespace(org.objectweb.asm.MethodVisitor mv,
int variableIndex) |
protected void |
doIncrementWhileNotEqualToDivider(org.objectweb.asm.MethodVisitor mv,
int divider) |
int |
getIndex() |
String |
getName() |
ValueProjection |
getProjection() |
protected org.objectweb.asm.Label |
ifAtChar(org.objectweb.asm.MethodVisitor mv,
int character) |
protected org.objectweb.asm.Label |
ifLargerThanStart(org.objectweb.asm.MethodVisitor mv,
int endIndex) |
protected org.objectweb.asm.Label |
ifNotAtChar(org.objectweb.asm.MethodVisitor mv,
int character) |
protected abstract void |
inline(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
int divider,
int increment,
boolean fillable)
Inline column handling
|
boolean |
isBiConsumer() |
boolean |
isTriConsumer() |
protected org.objectweb.asm.Label |
jumpToLabelForChar(org.objectweb.asm.MethodVisitor mv,
int character,
int code) |
void |
last(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean carriageReturn,
boolean inline) |
void |
middle(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean inline) |
protected void |
saveOffsetInRange(org.objectweb.asm.MethodVisitor mv) |
protected void |
saveOffsetInStart(org.objectweb.asm.MethodVisitor mv) |
void |
setParent(AbstractCsvMapper<?> parent) |
void |
setProjection(ValueProjection projection) |
protected void |
throwMappingException(org.objectweb.asm.MethodVisitor mv) |
protected void |
trimTrailingWhitespace(org.objectweb.asm.MethodVisitor mv,
boolean inclusive) |
protected void |
trimWhitespace(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
int index) |
protected void |
writeValue(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean inclusive) |
protected final String name
protected final int index
protected final boolean optional
protected final boolean trimTrailingWhitespaces
protected final boolean trimLeadingWhitespaces
protected AbstractCsvMapper<?> parent
protected static final int currentOffsetIndex
protected static final int currentArrayIndex
protected static final int objectIndex
protected static final int startIndex
protected static final int rangeIndex
protected static final int intermediateIndex
protected Class<?> intermediate
protected ValueProjection projection
public AbstractColumn(String name, int index, boolean optional, boolean trimTrailingWhitespaces, boolean trimLeadingWhitespaces)
public void middle(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean inline)
public void last(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean carriageReturn,
boolean inline)
protected abstract void inline(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
int divider,
int increment,
boolean fillable)
mv - method visitorsubClassInternalName - target parser classdivider - divider characterincrement - increment after last characterfillable - if true then a fill operation must be successfulpublic String getName()
public void setParent(AbstractCsvMapper<?> parent)
public int getIndex()
public boolean isBiConsumer()
public boolean isTriConsumer()
protected org.objectweb.asm.Label ifNotAtChar(org.objectweb.asm.MethodVisitor mv,
int character)
protected org.objectweb.asm.Label ifAtChar(org.objectweb.asm.MethodVisitor mv,
int character)
protected org.objectweb.asm.Label jumpToLabelForChar(org.objectweb.asm.MethodVisitor mv,
int character,
int code)
protected void throwMappingException(org.objectweb.asm.MethodVisitor mv)
protected void doIncrementWhileNotEqualToDivider(org.objectweb.asm.MethodVisitor mv,
int divider)
protected void doDecrementWhileAtWhitespace(org.objectweb.asm.MethodVisitor mv,
int variableIndex)
protected void trimTrailingWhitespace(org.objectweb.asm.MethodVisitor mv,
boolean inclusive)
protected void saveOffsetInStart(org.objectweb.asm.MethodVisitor mv)
protected void saveOffsetInRange(org.objectweb.asm.MethodVisitor mv)
protected void writeValue(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
boolean inclusive)
protected org.objectweb.asm.Label ifLargerThanStart(org.objectweb.asm.MethodVisitor mv,
int endIndex)
protected void trimWhitespace(org.objectweb.asm.MethodVisitor mv,
String subClassInternalName,
int index)
public ValueProjection getProjection()
public void setProjection(ValueProjection projection)
Copyright © 2022 Media Skjolberg. All rights reserved.