Class FragmentNode
- All Implemented Interfaces:
NodeVisitable
Node represening a fragment
- Author:
- Guillaume CHAUVET
-
Field Summary
Fields inherited from class pro.cyberyon.mojet.nodes.AbstractNode
accessor, annotation -
Constructor Summary
ConstructorsConstructorDescriptionFragmentNode(String accessor, Fragment annotation, TypeHandler<?> handler) Construct a fragment node instance -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NodeVisitor visitor) Consume a visitorthe padding wayThe format for handling dataintThe length of data areacharThe padding characterebooleanFlag for optional content
-
Constructor Details
-
FragmentNode
Construct a fragment node instance- Parameters:
accessor- the field accessor nameannotation- the fragment annotationhandler- the concrete handle to use
-
-
Method Details
-
getLenght
public int getLenght()The length of data area- Returns:
- a strict positive number
-
getPadder
public char getPadder()The padding charactere- Returns:
- the padding value
-
getAlignement
-
getFormat
-
isOptional
public boolean isOptional()Flag for optional content- Returns:
trueif optional
-
accept
-