Class JBBPFieldTypeParameterContainer
java.lang.Object
com.igormaznitsa.jbbp.compiler.tokenizer.JBBPFieldTypeParameterContainer
- All Implemented Interfaces:
Serializable
The Class is a container to keep parsed field type parameters.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJBBPFieldTypeParameterContainer(JBBPByteOrder byteOrder, String typeName, String extraData) The Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the byte order for the field.Get the extra data for the field.Extract expression for extra data.Get the type name of the field.booleanCheck that the extra data is expression.booleanCheck that the type is a special one ('floatj', 'doublej', 'stringj', 'uint' or 'value').toString()
-
Constructor Details
-
JBBPFieldTypeParameterContainer
The Constructor- Parameters:
byteOrder- the byte order for the field, must not be nulltypeName- the type of the field, can be nullextraData- the extra data placed after ':' char, can be null
-
-
Method Details
-
getByteOrder
Get the byte order for the field. It can be null.- Returns:
- the defined byte order for the field.
-
getTypeName
Get the type name of the field.- Returns:
- the type name as String.
-
getExtraData
Get the extra data for the field.- Returns:
- the extra data as string or null.
-
getExtraDataExpression
Extract expression for extra data.- Returns:
- extracted expression from extra data, null if it is not extra data
-
hasExpressionAsExtraData
public boolean hasExpressionAsExtraData()Check that the extra data is expression.- Returns:
- true if the extra data is expression, false otherwise
-
isSpecialField
public boolean isSpecialField()Check that the type is a special one ('floatj', 'doublej', 'stringj', 'uint' or 'value').- Returns:
- true if the type is a special one
- Since:
- 1.4.0
- See Also:
-
toString
-