Class JBBPFieldTypeParameterContainer

java.lang.Object
com.igormaznitsa.jbbp.compiler.tokenizer.JBBPFieldTypeParameterContainer
All Implemented Interfaces:
Serializable

public final class JBBPFieldTypeParameterContainer extends Object implements Serializable
The Class is a container to keep parsed field type parameters.
Since:
1.0
See Also:
  • Constructor Details

    • JBBPFieldTypeParameterContainer

      public JBBPFieldTypeParameterContainer(JBBPByteOrder byteOrder, String typeName, String extraData)
      The Constructor
      Parameters:
      byteOrder - the byte order for the field, must not be null
      typeName - the type of the field, can be null
      extraData - the extra data placed after ':' char, can be null
  • Method Details

    • getByteOrder

      public JBBPByteOrder getByteOrder()
      Get the byte order for the field. It can be null.
      Returns:
      the defined byte order for the field.
    • getTypeName

      public String getTypeName()
      Get the type name of the field.
      Returns:
      the type name as String.
    • getExtraData

      public String getExtraData()
      Get the extra data for the field.
      Returns:
      the extra data as string or null.
    • getExtraDataExpression

      public String getExtraDataExpression()
      Extract expression for extra data.
      Returns:
      extracted expression from extra data, null if it is not extra data
    • hasExpressionAsExtraData

      public boolean hasExpressionAsExtraData()
      Check that the extra data is expression.
      Returns:
      true if the extra data is expression, false otherwise
    • isSpecialField

      public boolean isSpecialField()
      Check that the type is a special one ('floatj', 'doublej', 'stringj', 'uint' or 'value').
      Returns:
      true if the type is a special one
      Since:
      1.4.0
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object