Package

za.co.absa.cobrix.cobol.parser

ast

Permalink

package ast

Visibility
  1. Public
  2. All

Type Members

  1. case class BinaryProperties(offset: Int, dataSize: Int, actualSize: Int) extends Product with Serializable

    Permalink

    Class for binary properties of a Cobol AST element

  2. case class Group(level: Int, name: String, originalName: String, lineNumber: Int, children: ArrayBuffer[Statement] = mutable.ArrayBuffer(), redefines: Option[String] = None, isRedefined: Boolean = false, isSegmentRedefine: Boolean = false, parentSegment: Option[Group] = None, occurs: Option[Int] = None, to: Option[Int] = None, dependingOn: Option[String] = None, dependingOnHandlers: Map[String, Int] = Map(), isFiller: Boolean = false, groupUsage: Option[Usage] = None, nonFillerSize: Int = 0, binaryProperties: BinaryProperties = BinaryProperties(0, 0, 0))(parent: Option[Group] = None) extends Statement with Product with Serializable

    Permalink

    An abstraction for the non-leaves in the Cobol copybook

    An abstraction for the non-leaves in the Cobol copybook

    level

    A level for the statement

    name

    An identifier

    originalName

    Original name of the AST element (before the conversion to the Spark-compatible name)

    lineNumber

    An line number in the copybook

    children

    Child entities

    redefines

    A name of a field which is redefined by this one

    isRedefined

    Is the field redefined by an other field

    isSegmentRedefine

    Is the field corresponds to one of the segments (it should be a redefine)

    parentSegment

    Specifies a parent segment for a segment redefine in hierarchical files

    occurs

    The number of elements in an fixed size array / minimum items in variable-sized array

    to

    The maximum number of items in a variable size array

    dependingOn

    A field which specifies size of the array in a record

    isFiller

    Is the group a filler (unnamed block of data)

    groupUsage

    A USAGE to be inherited by all the fields in the group

    nonFillerSize

    The number of non-filler children in the group

    binaryProperties

    Pre-calculated offsets and sizes of thebinary data of the group

    parent

    A parent node

  3. case class Primitive(level: Int, name: String, originalName: String, lineNumber: Int, dataType: CobolType, redefines: Option[String] = None, isRedefined: Boolean = false, occurs: Option[Int] = None, to: Option[Int] = None, dependingOn: Option[String] = None, dependingOnHandlers: Map[String, Int] = Map(), isDependee: Boolean = false, isFiller: Boolean = false, decode: Decoder, binaryProperties: BinaryProperties = BinaryProperties(0, 0, 0))(parent: Option[Group] = None) extends Statement with Product with Serializable

    Permalink

    An abstraction of the statements describing fields of primitive data types in the COBOL copybook

    An abstraction of the statements describing fields of primitive data types in the COBOL copybook

    level

    A level for the statement

    name

    An identifier

    originalName

    Original name of the AST element (before the conversion to the Spark-compatible name)

    lineNumber

    An line number in the copybook

    redefines

    A name of a field which is redefined by this one

    occurs

    The number of elements in an fixed size array / minimum items in variable-sized array

    to

    The maximum number of items in a variable size array

    dependingOn

    A field which specifies size of the array in a record

    parent

    A parent node

  4. trait Statement extends AnyRef

    Permalink

    Trait for Cobol copybook AST element (a statement).

Value Members

  1. object Group extends Serializable

    Permalink
  2. package datatype

    Permalink

Ungrouped