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
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
- Alphabetic
- By Inheritance
- Primitive
- Serializable
- Serializable
- Product
- Equals
- Statement
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
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)
- 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
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
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val dataType: CobolType
- val decode: Decoder
-
def
decodeTypeValue(itOffset: Int, record: Array[Byte]): Any
Returns a value of a field biven a binary data.
Returns a value of a field biven a binary data. The return data type depends on the data type of the field
- itOffset
An offset of the field inside the binary data
- record
A record in a binary format represented as a vector of bits
- Annotations
- @throws( classOf[Exception] )
-
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] )
-
def
getBinarySizeBytes: Int
Returns the binary size in bits for the field
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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 isDependee: Boolean
-
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
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
-
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
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 field
-
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): Primitive
Returns the original field with updated binary properties
-
def
withUpdatedDependingOnHandlers(newDependingOnHandlers: Map[String, Int]): Primitive
Returns the original AST element with updated
isRedefinedflag -
def
withUpdatedIsDependee(newIsDependee: Boolean): Primitive
Returns the original field with updated
isDependeeflag -
def
withUpdatedIsRedefined(newIsRedefined: Boolean): Primitive
Returns the original field with updated
isRedefinedflag