Class that represents a subscription expression clause for import specifications. More...

Detailed Description

Class that represents a subscription expression clause for import specifications.

Member Function Documentation

◆ toString()

Get the string representation of the subscription expression.

Returns
string representation of the subscription expression

◆ getSize()

Return the number of subclauses in an and/or-clause.

Precondition
getKind() != Predicate
Returns
number of subclauses in the clause
Exceptions

◆ getSubclause() [1/2]

◆ getSubclause() [2/2]

◆ addClause()

◆ removeClause()

◆ getKind()

Get the kind of the subscription expression (and clause, or clause, or a predicate)

Returns
kind of the subscription expression

◆ getSymbol()

Return the symbol in a predicate clause.

Precondition
getKind() == Predicate
Returns
symbol
Exceptions

◆ getLiteral()

Return the literal in a predicate.

Precondition
getKind() == Predicate
Returns
literal
Exceptions

◆ getOp()

Return the operator in an predicate clause.

Precondition
getKind() == Predicate
Returns
operation
Exceptions

◆ hasSubscript()

Return true if the symbol in a predicate clause has a subscript.

Precondition
getKind() == Predicate
Returns
true if the item has a subscript
Exceptions

◆ getSubscript()

Return subscript for the symbol in a predicate clause.

Precondition
getKind() == Predicate && hasSubscript()
Returns
subscript value
Exceptions

◆ hasModuloDivisor()

Return true if the symbol in a predicate clause has a modulo divisor.

Precondition
getKind() == Predicate
Returns
true if the item has a modulo divisor
Exceptions

◆ getModuloDivisor()

Return modulo divisor for the symbol in a predicate clause.

Precondition
getKind() == Predicate && hasModuloDivisor()
Returns
modulo divisor value
Exceptions

◆ isEmpty()

Is this an empty SubscriptionExpression?

Returns
true if the subscription expression represents an empty expression

◆ createPredicate()

◆ createModuloPredicate()

◆ createAndClause()

◆ createOrClause()

◆ fromString()


The documentation for this class was generated from the following file: