Class FieldVisitor

    • Constructor Detail

      • FieldVisitor

        protected FieldVisitor​(ClassGenerator classGenerator,
                               int initialIndent)
    • Method Detail

      • visitField

        public void visitField​(long offset32,
                               long offset64,
                               CStruct struct,
                               CField field,
                               JavaType jtype)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • visitArray

        protected abstract void visitArray​(long offset32,
                                           long offset64,
                                           CField field,
                                           JavaType jtype)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • visitPointer

        protected abstract void visitPointer​(long offset32,
                                             long offset64,
                                             CField field,
                                             JavaType jtype)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • visitScalar

        protected abstract void visitScalar​(long offset32,
                                            long offset64,
                                            CField field,
                                            JavaType jtype)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • visitStruct

        protected abstract void visitStruct​(long offset32,
                                            long offset64,
                                            CField field,
                                            JavaType jtype)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getFieldDoc

        protected java.lang.String getFieldDoc()
      • appendFieldDoc

        protected void appendFieldDoc​(GComment javadoc)
      • getFieldType

        protected java.lang.String getFieldType​(CType ctype,
                                                JavaType jtype)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getTemplateParameter

        protected java.lang.String getTemplateParameter​(CType ctype,
                                                        JavaType jtype)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getScalarJavaObjectType

        protected java.lang.Class<?> getScalarJavaObjectType​(CType ctype,
                                                             JavaType jtype)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getTypeList

        protected java.lang.String getTypeList​(JavaType jtype,
                                               CType ctype)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getClassTypeName

        protected java.lang.String getClassTypeName​(CType ctype,
                                                    JavaType jtype)
                                             throws java.io.IOException
        Throws:
        java.io.IOException