Package org.sonar.python.tree
Class BinaryExpressionImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.BinaryExpressionImpl
-
- All Implemented Interfaces:
BinaryExpression,Expression,Tree
- Direct Known Subclasses:
InExpressionImpl,IsExpressionImpl
public class BinaryExpressionImpl extends PyTree implements BinaryExpression
-
-
Field Summary
-
Fields inherited from class org.sonar.python.tree.PyTree
firstToken, lastToken
-
-
Constructor Summary
Constructors Constructor Description BinaryExpressionImpl(Expression leftOperand, Token operator, Expression rightOperand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>computeChildren()Tree.KindgetKind()ExpressionleftOperand()Tokenoperator()ExpressionrightOperand()-
Methods inherited from class org.sonar.python.tree.PyTree
children, firstToken, is, lastToken, parent, setParent
-
-
-
-
Constructor Detail
-
BinaryExpressionImpl
public BinaryExpressionImpl(Expression leftOperand, Token operator, Expression rightOperand)
-
-
Method Detail
-
leftOperand
public Expression leftOperand()
- Specified by:
leftOperandin interfaceBinaryExpression
-
operator
public Token operator()
- Specified by:
operatorin interfaceBinaryExpression
-
rightOperand
public Expression rightOperand()
- Specified by:
rightOperandin interfaceBinaryExpression
-
accept
public void accept(TreeVisitor visitor)
-
-