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
- Alphabetic
- By Inheritance
- Group
- Serializable
- Serializable
- Product
- Equals
- Statement
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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( ... )
-
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( ... )
-
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( ... )
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
binaryProperties: BinaryProperties
A binary properties of a field
-
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
-
val
camelCased: String
- Definition Classes
- Statement
- val children: ArrayBuffer[Statement]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
dependingOn: Option[String]
Returns a field name this fields depends on.
-
val
dependingOnHandlers: Map[String, Int]
Returns a mapping used for OCCURS (arrays) integral conversion.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val groupUsage: Option[Usage]
-
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
-
def
isChildSegment: Boolean
Returns true if the field is a child segment
-
val
isFiller: Boolean
Returns true if the field is a filler
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
isRedefined: Boolean
Returns true if this field is redefined by some other field
- val isSegmentRedefine: Boolean
-
val
level: Int
Returns the level of the AST element
-
val
lineNumber: Int
Returns the line number in the copybook where the ast object is defined
-
val
name: String
Returns the name of the AST element
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nonFillerSize: Int
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
occurs: Option[Int]
Returns OCCURS property of the AST element if present
-
val
originalName: String
Returns the original name of the AST element (before the conversion to the Spark-compatible name)
-
val
parent: Option[Group]
Returns the parent element of the ASt element
- val parentSegment: Option[Group]
-
val
redefines: Option[String]
Returns a fields name that this AST element redefines (REDEFINES property)
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
to: Option[Int]
Returns TO property of the AST element if present
-
def
toString(): String
Returns a string representation of the AST element
Returns a string representation of the AST element
- Definition Classes
- Statement → AnyRef → Any
-
def
up(): Option[Statement]
Returns a parent of the current node *
Returns a parent of the current node *
- Definition Classes
- Statement
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withUpdatedBinaryProperties(newBinaryProperties: BinaryProperties): Group
Returns the original Group with updated binary properties
-
def
withUpdatedChildren(newChildren: ArrayBuffer[Statement]): Group
Returns the original Group with updated children
-
def
withUpdatedDependingOnHandlers(newDependingOnHandlers: Map[String, Int]): Group
Returns the original AST element with updated
isRedefinedflag -
def
withUpdatedIsRedefined(newIsRedefined: Boolean): Group
Returns the original Group with updated
isRedefinedflag -
def
withUpdatedIsSegmentRedefine(newIsSegmentRedefine: Boolean): Group
Returns the original AST element with updated
isSegmentRedefineflag -
def
withUpdatedParentSegment(newParentSegmentOpt: Option[Group]): Group
Returns the original AST element with updated
isSegmentRedefineflag