Package org.basex.query.value.type
Class ExprType
java.lang.Object
org.basex.query.value.type.ExprType
Expression type, including a sequence type and result size.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAssigns type information of the specified expression.voidAssigns the specified expression type.voidAssigns the specified occurrence indicator, updates the result size.voidAssigns the specified sequence type, updates the result size.voidAssigns the specified sequence type and result size.voidAssigns the type and result size, based on the specified min/max occurrences.voidAssigns the specified type and result size.voidAssigns the specified type.voidAssigns the specified type and occurrence indicator, updates the result size.voidRefines the type with type information from the specified expression.seqType()Returns the sequence type.longsize()Returns the result size.toString()
-
Constructor Details
-
ExprType
Constructor.- Parameters:
seqType- sequence type
-
-
Method Details
-
seqType
Returns the sequence type.- Returns:
- sequence type
-
size
public long size()Returns the result size.- Returns:
- result size
-
assign
Assigns the specified sequence type, updates the result size.- Parameters:
st- sequence type
-
assign
Assigns type information of the specified expression.- Parameters:
expr- expression
-
assign
Assigns the specified expression type.- Parameters:
et- expression type
-
assign
Assigns the specified type.- Parameters:
type- type
-
assign
Assigns the specified type and occurrence indicator, updates the result size.- Parameters:
type- typeocc- occurrence indicator
-
assign
Assigns the specified occurrence indicator, updates the result size.- Parameters:
occ- occurrence indicator
-
assign
Assigns the specified sequence type and result size. The occurrence indicator of the sequence type is ignored if the result size is known.- Parameters:
st- sequence typesz- result size (unknown if negative)
-
assign
Assigns the specified type and result size. The specified occurrence indicator is ignored if the result size is known.- Parameters:
st- sequence type (the occurrence indicator is ignored)occ- occurrence indicatorsz- result size (unknown if negative)
-
assign
Assigns the type and result size, based on the specified min/max occurrences.- Parameters:
st- sequence type (the occurrence indicator is ignored)minMax- min/max values (min: 0 or more, max: -1 or more)
-
refine
Refines the type with type information from the specified expression.- Parameters:
expr- expression with original type
-
toString
-