Package org.sonar.java.model.expression
Class BinaryExpressionTreeImpl
- java.lang.Object
-
- org.sonar.java.model.JavaTree
-
- org.sonar.java.model.AbstractTypedTree
-
- org.sonar.java.model.expression.BinaryExpressionTreeImpl
-
- All Implemented Interfaces:
BinaryExpressionTree
,ExpressionTree
,Tree
public class BinaryExpressionTreeImpl extends AbstractTypedTree implements BinaryExpressionTree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.model.JavaTree
JavaTree.AnnotatedTypeTree, JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.PackageDeclarationTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl
-
-
Field Summary
-
Fields inherited from class org.sonar.java.model.JavaTree
grammarRuleKey
-
-
Constructor Summary
Constructors Constructor Description BinaryExpressionTreeImpl(Tree.Kind kind, ExpressionTree leftOperand, InternalSyntaxToken operator, ExpressionTree rightOperand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(TreeVisitor visitor)
Iterable<Tree>
children()
Creates iterable for children of this node.Tree.Kind
kind()
ExpressionTree
leftOperand()
SyntaxToken
operatorToken()
ExpressionTree
rightOperand()
-
Methods inherited from class org.sonar.java.model.AbstractTypedTree
completeMissingType, isTypeSet, setInferedType, setType, symbolType
-
Methods inherited from class org.sonar.java.model.JavaTree
firstToken, getChildren, getGrammarRuleKey, getLine, is, isLeaf, lastToken, parent, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.java.api.tree.ExpressionTree
symbolType
-
Methods inherited from interface org.sonar.plugins.java.api.tree.Tree
firstToken, is, lastToken, parent
-
-
-
-
Constructor Detail
-
BinaryExpressionTreeImpl
public BinaryExpressionTreeImpl(Tree.Kind kind, ExpressionTree leftOperand, InternalSyntaxToken operator, ExpressionTree rightOperand)
-
-
Method Detail
-
leftOperand
public ExpressionTree leftOperand()
- Specified by:
leftOperand
in interfaceBinaryExpressionTree
-
operatorToken
public SyntaxToken operatorToken()
- Specified by:
operatorToken
in interfaceBinaryExpressionTree
-
rightOperand
public ExpressionTree rightOperand()
- Specified by:
rightOperand
in interfaceBinaryExpressionTree
-
accept
public void accept(TreeVisitor visitor)
-
-