Class JField


  • public class JField
    extends java.lang.Object
    • Constructor Detail

      • JField

        public JField​(net.morimekta.providence.reflect.contained.CField field,
                      JHelper helper,
                      int index)
    • Method Detail

      • index

        public int index()
      • field

        public net.morimekta.providence.reflect.contained.CField field()
      • type

        public net.morimekta.providence.PType type()
      • binary

        public boolean binary()
      • id

        public int id()
      • name

        public java.lang.String name()
      • param

        public java.lang.String param()
      • member

        public java.lang.String member()
      • mutable

        public java.lang.String mutable()
      • isSet

        public java.lang.String isSet()
      • isModified

        public java.lang.String isModified()
      • getter

        public java.lang.String getter()
      • optional

        public java.lang.String optional()
      • presence

        public java.lang.String presence()
      • counter

        public java.lang.String counter()
      • setter

        public java.lang.String setter()
      • ref

        public java.lang.String ref()
      • adder

        public java.lang.String adder()
      • resetter

        public java.lang.String resetter()
      • fieldEnum

        public java.lang.String fieldEnum()
      • kDefault

        public java.lang.String kDefault()
      • hasDefaultConstant

        public boolean hasDefaultConstant()
      • isRequired

        public boolean isRequired()
      • container

        public boolean container()
      • containerType

        public net.morimekta.providence.util.ThriftContainer containerType()
      • alwaysPresent

        public boolean alwaysPresent()
      • isPrimitiveJavaValue

        public boolean isPrimitiveJavaValue()
      • valueType

        public java.lang.String valueType()
                                   throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • fieldType

        public java.lang.String fieldType()
                                   throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • paramType

        public java.lang.String paramType()
                                   throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • instanceType

        public java.lang.String instanceType()
                                      throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • builderFieldType

        public java.lang.String builderFieldType()
                                          throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • builderMutableType

        public java.lang.String builderMutableType()
                                            throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • fieldInstanceCopy

        public java.lang.String fieldInstanceCopy​(java.lang.String var)
                                           throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • builderInstanceType

        public java.lang.String builderInstanceType()
                                             throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • getProvider

        public java.lang.String getProvider()
                                     throws net.morimekta.providence.generator.GeneratorException
        Throws:
        net.morimekta.providence.generator.GeneratorException
      • hasComment

        public boolean hasComment()
      • comment

        public java.lang.String comment()
      • isVoid

        public boolean isVoid()
      • toPList

        public net.morimekta.providence.descriptor.PList toPList()
      • toPSet

        public net.morimekta.providence.descriptor.PSet toPSet()
      • toPMap

        public net.morimekta.providence.descriptor.PMap toPMap()
      • portableRequiresBinarySerialization

        public boolean portableRequiresBinarySerialization()
        Returns:
        True if the field should be serialized with it's binary serialized representation, not it's portable field type. This is the case for non-portable messages, sets and lists of non-portable messages and all maps.