Class JBBPNamedFieldInfo

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

public final class JBBPNamedFieldInfo extends Object implements Serializable
The Class describes a named field info item. Such objects are presented inside compiled blocks only for fields which have names.
Since:
1.0
See Also:
  • Constructor Details

    • JBBPNamedFieldInfo

      public JBBPNamedFieldInfo(String fieldPath, String fieldName, int offsetInCompiledBlock)
      The Constructor
      Parameters:
      fieldPath - the field path
      fieldName - the field name
      offsetInCompiledBlock - the offset in the compiled block for the field
  • Method Details

    • getFieldPath

      public String getFieldPath()
      Get the field path.
      Returns:
      the field path as string
    • getFieldName

      public String getFieldName()
      Get the field name.
      Returns:
      the field name as string
    • getFieldOffsetInCompiledBlock

      public int getFieldOffsetInCompiledBlock()
      Get the field offset in the compiled byte-code block.
      Returns:
      the field offset in the byte-code block
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object