class Copybook extends Logging with Serializable
- Alphabetic
- By Inheritance
- Copybook
- Serializable
- Serializable
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Copybook(ast: CopybookAST)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val ast: CopybookAST
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def dropFillers(dropGroupFillers: Boolean, dropValueFillers: Boolean): Copybook
- def dropRoot(): Copybook
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extractPrimitiveField(field: Primitive, bytes: Array[Byte], startOffset: Int = 0): Any
Get value of a field of the copybook record by the AST object of the field
Get value of a field of the copybook record by the AST object of the field
Nested field names can contain '.' to identify the exact field. If the field name is unique '.' is not required.
- field
The AST object of the field
- bytes
Binary encoded data of the record
- startOffset
An offset to the beginning of the field in the data (in bytes).
- returns
The value of the field
- Annotations
- @throws( classOf[Exception] )
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generateRecordLayoutPositions(): String
This routine is used for testing by generating a layout position information to compare with mainframe output
-
def
getAllSegmentRedefines: List[CopybookAST]
Returns all segment redefines defined in an AST.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCobolSchema: CopybookAST
-
def
getFieldByName(fieldName: String): Statement
Get the AST object of a field by name.
Get the AST object of a field by name.
Nested field names can contain '.' to identify the exact field. If the field name is unique '.' is not required.
- fieldName
A field name
- returns
An AST object of the field. Throws an IllegalStateException if not found of found multiple.
- Annotations
- @throws( classOf[IllegalArgumentException] )
-
def
getFieldValueByName(fieldName: String, bytes: Array[Byte], startOffset: Int = 0): Any
Get value of a field of the copybook record by name
Get value of a field of the copybook record by name
Nested field names can contain '.' to identify the exact field. If the field name is unique '.' is not required.
- fieldName
A field name
- bytes
Binary encoded data of the record
- startOffset
An offset where the record starts in the data (in bytes).
- returns
The value of the field
- Annotations
- @throws( classOf[IllegalStateException] ) @throws( classOf[Exception] )
-
def
getParentChildrenSegmentMap: Map[String, Seq[Group]]
Returns a mapping from a segment redefine field name to its children.
- lazy val getRecordSize: Int
- def getRootRecords: Seq[Statement]
-
def
getRootSegmentAST: CopybookAST
Returns a root segment AST stripped of all child segment ASTs.
-
def
getRootSegmentIds(segmentIdRedefineMap: Map[String, String], fieldParentMap: Map[String, String]): List[String]
Returns a a list of values of segment ids for the root segment.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val isFlatCopybook: Boolean
-
lazy val
isHierarchical: Boolean
Returns true if there at least 1 parent-child relationships defined in any of segment redefines.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRecordFixedSize: Boolean
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
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()
- def restrictTo(fieldName: String): Copybook
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
visitPrimitive(f: (Primitive) ⇒ Unit): Unit
This method traverses the AST and invokes the provided function on each primitive field
This method traverses the AST and invokes the provided function on each primitive field
- f
A function to invoke on each primitive field.
-
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()