Packages

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

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

Linear Supertypes
Serializable, Serializable, Product, Equals, Statement, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Group
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Statement
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new 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)

    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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add[T <: Statement](tree: T): Statement

    This method is used to add a za.co.absa.cobrix.cobol.parser.ast.Statement object as a child of another za.co.absa.cobrix.cobol.parser.ast.Statement object

    This method is used to add a za.co.absa.cobrix.cobol.parser.ast.Statement object as a child of another za.co.absa.cobrix.cobol.parser.ast.Statement object

    T

    Either Group or Primitive

    tree

    A tree to add this item to

    returns

    the new tree

    Annotations
    @throws( ... )
  5. def arrayMaxSize: Int

    Returns the maximum OCCURS (array) size of the field.

    Returns the maximum OCCURS (array) size of the field. Returns 1 for non-OCCURS (non-array) fields.

    Definition Classes
    Statement
    Annotations
    @throws( ... )
  6. def arrayMinSize: Int

    Returns the minimum OCCURS (array) size of the field.

    Returns the minimum OCCURS (array) size of the field. Returns 1 for non-OCCURS (non-array) fields.

    Definition Classes
    Statement
    Annotations
    @throws( ... )
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val binaryProperties: BinaryProperties

    A binary properties of a field

    A binary properties of a field

    Definition Classes
    GroupStatement
  9. def camelCase(s: String): String

    Returns this the name of this fields as a camel cased string

    Returns this the name of this fields as a camel cased string

    Definition Classes
    Statement
  10. val camelCased: String
    Definition Classes
    Statement
  11. val children: ArrayBuffer[Statement]
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  13. val dependingOn: Option[String]

    Returns a field name this fields depends on.

    Returns a field name this fields depends on. This is used for OCCURS (arrays).

    Definition Classes
    GroupStatement
  14. val dependingOnHandlers: Map[String, Int]

    Returns a mapping used for OCCURS (arrays) integral conversion.

    Returns a mapping used for OCCURS (arrays) integral conversion.

    Definition Classes
    GroupStatement
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. val groupUsage: Option[Usage]
  19. def isArray: Boolean

    Returns true is the AST element is an array (has OCCURS)

    Returns true is the AST element is an array (has OCCURS)

    Definition Classes
    Statement
  20. def isChildSegment: Boolean

    Returns true if the field is a child segment

    Returns true if the field is a child segment

    Definition Classes
    GroupStatement
  21. val isFiller: Boolean

    Returns true if the field is a filler

    Returns true if the field is a filler

    Definition Classes
    GroupStatement
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. val isRedefined: Boolean

    Returns true if this field is redefined by some other field

    Returns true if this field is redefined by some other field

    Definition Classes
    GroupStatement
  24. val isSegmentRedefine: Boolean
  25. val level: Int

    Returns the level of the AST element

    Returns the level of the AST element

    Definition Classes
    GroupStatement
  26. val lineNumber: Int

    Returns the line number in the copybook where the ast object is defined

    Returns the line number in the copybook where the ast object is defined

    Definition Classes
    GroupStatement
  27. val name: String

    Returns the name of the AST element

    Returns the name of the AST element

    Definition Classes
    GroupStatement
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. val nonFillerSize: Int
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. val occurs: Option[Int]

    Returns OCCURS property of the AST element if present

    Returns OCCURS property of the AST element if present

    Definition Classes
    GroupStatement
  33. val originalName: String

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

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

    Definition Classes
    GroupStatement
  34. val parent: Option[Group]

    Returns the parent element of the ASt element

    Returns the parent element of the ASt element

    Definition Classes
    GroupStatement
  35. val parentSegment: Option[Group]
  36. val redefines: Option[String]

    Returns a fields name that this AST element redefines (REDEFINES property)

    Returns a fields name that this AST element redefines (REDEFINES property)

    Definition Classes
    GroupStatement
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. val to: Option[Int]

    Returns TO property of the AST element if present

    Returns TO property of the AST element if present

    Definition Classes
    GroupStatement
  39. def toString(): String

    Returns a string representation of the AST element

    Returns a string representation of the AST element

    Definition Classes
    Statement → AnyRef → Any
  40. def up(): Option[Statement]

    Returns a parent of the current node *

    Returns a parent of the current node *

    Definition Classes
    Statement
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  44. def withUpdatedBinaryProperties(newBinaryProperties: BinaryProperties): Group

    Returns the original Group with updated binary properties

    Returns the original Group with updated binary properties

    Definition Classes
    GroupStatement
  45. def withUpdatedChildren(newChildren: ArrayBuffer[Statement]): Group

    Returns the original Group with updated children

  46. def withUpdatedDependingOnHandlers(newDependingOnHandlers: Map[String, Int]): Group

    Returns the original AST element with updated isRedefined flag

    Returns the original AST element with updated isRedefined flag

    Definition Classes
    GroupStatement
  47. def withUpdatedIsRedefined(newIsRedefined: Boolean): Group

    Returns the original Group with updated isRedefined flag

    Returns the original Group with updated isRedefined flag

    Definition Classes
    GroupStatement
  48. def withUpdatedIsSegmentRedefine(newIsSegmentRedefine: Boolean): Group

    Returns the original AST element with updated isSegmentRedefine flag

  49. def withUpdatedParentSegment(newParentSegmentOpt: Option[Group]): Group

    Returns the original AST element with updated isSegmentRedefine flag

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Statement

Inherited from AnyRef

Inherited from Any

Ungrouped