Class Compare
A comparison operation, such as x<y
Import path
import pythonDirect supertypes
Indirect supertypes
Predicates
| compares | Whether as part of this comparison ‘left’ is compared with ‘right’ using the operator ‘op’. For example, the comparison |
| getASubExpression | Gets an immediate (non-nested) sub-expression of this expression |
Inherited predicates
| contains | Whether this contains | from AstNode |
| containsInScope | Whether this contains | from AstNode |
| defines | Whether this expression defines variable | from Expr |
| getAChildNode | Gets a child node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt(). | from Expr |
| getAComparator | Gets a right sub-expression of this compare expression. | from Compare_ |
| getAFlowNode | Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a | from AstNode |
| getAnOp | Gets a comparison operator of this compare expression. | from Compare_ |
| getComparator | Gets the nth right sub-expression of this compare expression. | from Compare_ |
| getComparators | Gets the right sub-expressions of this compare expression. | from Compare_ |
| getEnclosingModule | Gets the module in which this expression occurs | from Expr |
| getLeft | Gets the left sub-expression of this compare expression. | from Compare_ |
| getLocation | from Expr | |
| getOp | Gets the nth comparison operator of this compare expression. | from Compare_ |
| getOps | Gets the comparison operators of this compare expression. | from Compare_ |
| getParent | Gets a parent of this expression | from Expr_ |
| getParentNode | Gets the parent node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt() applied to the parent. | from AstNode |
| getScope | Gets the scope of this expression | from Expr |
| hasSideEffects | Whether this expression may have a side effect (as determined purely from its syntax) | from Expr |
| isArtificial | Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source | from AstNode |
| isConstant | Whether this expression is a constant | from Expr |
| isParenthesised | Whether the parenthesised property of this expression is true. | from Expr_ |
| isParenthesized | Whether the parenthesized property of this expression is true. | from Expr |
| pointsTo | Gets a value that this expression might “point-to”. | from Expr |
| pointsTo | Holds if this expression might “point-to” to | from Expr |
| pointsTo | Holds if this expression might “point-to” to | from Expr |
| pointsTo | Holds if this expression might “point-to” to | from Expr |
| refersTo | NOTE: | from Expr |
| refersTo | NOTE: | from Expr |
| refersTo | NOTE: | from Expr |
| refersTo | NOTE: | from Expr |
| toString | Gets a textual representation of this element. | from Compare_ |