java.lang.Object
de.grogra.xl.compiler.xl16u.semantics.XL16USemanticRules
-
Method Summary
Modifier and TypeMethodDescriptionstatic XL16UAggregateDefaultaggregateEmptyDefault(XL16UAggregateKind aggregateKind, XL16UValueContract valueContract, XL16UValueContract weightContract) static XL16UValueContractaggregateResult(XL16UAggregateKind aggregateKind, XL16UValueContract valueContract) static XL16UValueContractaggregateResult(XL16UAggregateKind aggregateKind, XL16UValueContract valueContract, XL16UValueContract weightContract) static XL16UValueContractarithmetic(XL16UBinaryOperator operator, XL16UValueContract left, XL16UValueContract right) static XL16UValueContractarrayElementType(XL16UValueContract arrayContract) static XL16UValueContractcheckArrayElementAssignment(XL16UValueContract arrayContract, XL16UValueContract elementValue) static XL16UValueContractcheckAssignment(XL16UValueContract target, XL16UValueContract source) static XL16UValueContractcheckBoundary(XL16UBoundaryKind kind, XL16UValueContract target, XL16UValueContract source) static voidcheckComparison(XL16UValueContract left, XL16UValueContract right) static XL16UValueContractcheckParameter(XL16UValueContract parameter, XL16UValueContract argument) static XL16UValueContractcheckReturn(XL16UValueContract returnContract, XL16UValueContract expression) static XL16UValueContractexplicitCast(XL16UValueContract source, XL16UValueContract target) static XL16UValueContractinferVar(XL16UValueContract initializerResult) static XL16URangeIntervalintersectRanges(XL16UNumericType numericType, XL16URangeInterval left, XL16URangeInterval right) static XL16UNumericTypepromote(XL16UNumericType left, XL16UNumericType right) static XL16UUnitresolvePreferredUnit(XL16UUnit explicitSymbol, XL16UUnit aliasDefault, XL16UUnit initializerInferred, XL16UUnit baseUnit) static XL16UValueContractselectionResult(XL16UValueContract left, XL16UValueContract right)
-
Method Details
-
promote
-
checkAssignment
public static XL16UValueContract checkAssignment(XL16UValueContract target, XL16UValueContract source) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
checkParameter
public static XL16UValueContract checkParameter(XL16UValueContract parameter, XL16UValueContract argument) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
checkReturn
public static XL16UValueContract checkReturn(XL16UValueContract returnContract, XL16UValueContract expression) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
checkArrayElementAssignment
public static XL16UValueContract checkArrayElementAssignment(XL16UValueContract arrayContract, XL16UValueContract elementValue) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
checkBoundary
public static XL16UValueContract checkBoundary(XL16UBoundaryKind kind, XL16UValueContract target, XL16UValueContract source) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
checkComparison
public static void checkComparison(XL16UValueContract left, XL16UValueContract right) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
arithmetic
public static XL16UValueContract arithmetic(XL16UBinaryOperator operator, XL16UValueContract left, XL16UValueContract right) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
explicitCast
public static XL16UValueContract explicitCast(XL16UValueContract source, XL16UValueContract target) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
selectionResult
public static XL16UValueContract selectionResult(XL16UValueContract left, XL16UValueContract right) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
aggregateResult
public static XL16UValueContract aggregateResult(XL16UAggregateKind aggregateKind, XL16UValueContract valueContract) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
aggregateResult
public static XL16UValueContract aggregateResult(XL16UAggregateKind aggregateKind, XL16UValueContract valueContract, XL16UValueContract weightContract) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
aggregateEmptyDefault
public static XL16UAggregateDefault aggregateEmptyDefault(XL16UAggregateKind aggregateKind, XL16UValueContract valueContract, XL16UValueContract weightContract) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
arrayElementType
public static XL16UValueContract arrayElementType(XL16UValueContract arrayContract) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-
inferVar
-
resolvePreferredUnit
-
intersectRanges
public static XL16URangeInterval intersectRanges(XL16UNumericType numericType, XL16URangeInterval left, XL16URangeInterval right) throws XL16USemanticViolation - Throws:
XL16USemanticViolation
-