Class BinaryOperatorExpression
java.lang.Object
org.jd.core.v1.model.javasyntax.expression.AbstractLineNumberExpression
org.jd.core.v1.model.javasyntax.expression.AbstractLineNumberTypeExpression
org.jd.core.v1.model.javasyntax.expression.BinaryOperatorExpression
- All Implemented Interfaces:
Iterable<Expression>, BaseExpression, Expression, Base<Expression>
- Direct Known Subclasses:
ClassFileCmpExpression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected Stringprotected intprotected ExpressionFields inherited from class AbstractLineNumberTypeExpression
typeFields inherited from class AbstractLineNumberExpression
lineNumberFields inherited from interface Expression
UNKNOWN_LINE_NUMBER -
Constructor Summary
ConstructorsConstructorDescriptionBinaryOperatorExpression(int lineNumber, Type type, Expression leftExpression, String operator, Expression rightExpression, int priority) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ExpressionVisitor visitor) <T extends Expression>
T<T extends Expression>
TintvoidsetLeftExpression(Expression leftExpression) voidsetOperator(String operator) voidsetPriority(int priority) voidsetRightExpression(Expression rightExpression) toString()Methods inherited from class AbstractLineNumberTypeExpression
getType, setTypeMethods inherited from class AbstractLineNumberExpression
getLineNumberMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
leftExpression
-
operator
-
rightExpression
-
priority
protected int priority
-
-
Constructor Details
-
BinaryOperatorExpression
public BinaryOperatorExpression(int lineNumber, Type type, Expression leftExpression, String operator, Expression rightExpression, int priority)
-
-
Method Details
-
getLeftExpression
-
setLeftExpression
-
getGenericLeftExpression
-
getOperator
-
setOperator
-
getRightExpression
-
setRightExpression
-
getGenericRightExpression
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceExpression- Overrides:
getPriorityin classAbstractLineNumberExpression
-
setPriority
public void setPriority(int priority) -
accept
-
toString
-