Class AbstractColumn

    • Field Detail

      • name

        protected final String name
      • index

        protected final int index
      • optional

        protected final boolean optional
      • trimTrailingWhitespaces

        protected final boolean trimTrailingWhitespaces
      • trimLeadingWhitespaces

        protected final boolean trimLeadingWhitespaces
      • intermediate

        protected Class<?> intermediate
    • Constructor Detail

      • AbstractColumn

        public AbstractColumn​(String name,
                              int index,
                              boolean optional,
                              boolean trimTrailingWhitespaces,
                              boolean trimLeadingWhitespaces)
    • Method Detail

      • middle

        public void middle​(org.objectweb.asm.MethodVisitor mv,
                           String subClassInternalName,
                           boolean inline)
      • last

        public void last​(org.objectweb.asm.MethodVisitor mv,
                         String subClassInternalName,
                         boolean carriageReturn,
                         boolean inline)
      • inline

        protected abstract void inline​(org.objectweb.asm.MethodVisitor mv,
                                       String subClassInternalName,
                                       int divider,
                                       int increment,
                                       boolean fillable)
        Inline column handling
        Parameters:
        mv - method visitor
        subClassInternalName - target parser class
        divider - divider character
        increment - increment after last character
        fillable - if true then a fill operation must be successful
      • getName

        public String getName()
      • getIndex

        public int getIndex()
      • isBiConsumer

        public boolean isBiConsumer()
      • isTriConsumer

        public boolean isTriConsumer()
      • ifNotAtChar

        protected org.objectweb.asm.Label ifNotAtChar​(org.objectweb.asm.MethodVisitor mv,
                                                      int character)
      • ifAtChar

        protected org.objectweb.asm.Label ifAtChar​(org.objectweb.asm.MethodVisitor mv,
                                                   int character)
      • jumpToLabelForChar

        protected org.objectweb.asm.Label jumpToLabelForChar​(org.objectweb.asm.MethodVisitor mv,
                                                             int character,
                                                             int code)
      • throwMappingException

        protected void throwMappingException​(org.objectweb.asm.MethodVisitor mv)
      • doIncrementWhileNotEqualToDivider

        protected void doIncrementWhileNotEqualToDivider​(org.objectweb.asm.MethodVisitor mv,
                                                         int divider)
      • doDecrementWhileAtWhitespace

        protected void doDecrementWhileAtWhitespace​(org.objectweb.asm.MethodVisitor mv,
                                                    int variableIndex)
      • trimTrailingWhitespace

        protected void trimTrailingWhitespace​(org.objectweb.asm.MethodVisitor mv,
                                              boolean inclusive)
      • saveOffsetInStart

        protected void saveOffsetInStart​(org.objectweb.asm.MethodVisitor mv)
      • saveOffsetInRange

        protected void saveOffsetInRange​(org.objectweb.asm.MethodVisitor mv)
      • writeValue

        protected void writeValue​(org.objectweb.asm.MethodVisitor mv,
                                  String subClassInternalName,
                                  boolean inclusive)
      • ifLargerThanStart

        protected org.objectweb.asm.Label ifLargerThanStart​(org.objectweb.asm.MethodVisitor mv,
                                                            int endIndex)
      • trimWhitespace

        protected void trimWhitespace​(org.objectweb.asm.MethodVisitor mv,
                                      String subClassInternalName,
                                      int index)
      • setProjection

        public void setProjection​(ValueProjection projection)