public class BinaryOperatorExpression extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
eu.cqse.clang.CXCursor |
binaryExpressionCursor
CXCursor of the whole binary expression. |
EEssentialType |
leftHandOperandEssentialType
EEssentialType of the left hand operand. |
java.lang.String |
operator
The operator (e.g.
|
EEssentialType |
rightHandOperandEssentialType
EEssentialType of the right hand operand. |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<BinaryOperatorExpression> |
createFromCursor(eu.cqse.clang.CXCursor cursor,
java.lang.String fileText)
Creates a
BinaryOperatorExpression from the CXCursor if
possible. |
public final eu.cqse.clang.CXCursor binaryExpressionCursor
CXCursor
of the whole binary expression.public final EEssentialType leftHandOperandEssentialType
EEssentialType
of the left hand operand.public final EEssentialType rightHandOperandEssentialType
EEssentialType
of the right hand operand.public final java.lang.String operator
+
, -
, +=
).public static java.util.Optional<BinaryOperatorExpression> createFromCursor(eu.cqse.clang.CXCursor cursor, java.lang.String fileText)
BinaryOperatorExpression
from the CXCursor
if
possible. Errors are logged in case this fails. The CXCursor
must
satisfy ClangUtils.isBinaryOperatorOrCompoundAssignment(CXCursor)
.