Class DefaultNodeEqualityComparer
java.lang.Object
com.github._1c_syntax.bsl.languageserver.utils.expressiontree.DefaultNodeEqualityComparer
- All Implemented Interfaces:
NodeEqualityComparer
- Direct Known Subclasses:
TransitiveOperationsIgnoringComparer
Стандартный алгоритм сравнения выражений. Сравнивает выражения на идентичность.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
areEqual
(BslExpression first, BslExpression second) protected boolean
argumentsEqual
(List<BslExpression> argumentsOfFirst, List<BslExpression> argumentsOfSecond) protected boolean
binaryOperationsEqual
(BinaryOperationNode first, BinaryOperationNode second) protected boolean
callStatementsEqual
(AbstractCallNode first, AbstractCallNode second) protected boolean
constructorCallsEqual
(ConstructorCallNode first, ConstructorCallNode second) protected boolean
identifiersEqual
(TerminalSymbolNode first, TerminalSymbolNode second) protected boolean
literalsEqual
(TerminalSymbolNode first, TerminalSymbolNode second) protected boolean
methodCallsEqual
(MethodCallNode first, MethodCallNode second) protected boolean
ternaryOperatorsEqual
(TernaryOperatorNode first, TernaryOperatorNode second) protected boolean
unaryOperationsEqual
(UnaryOperationNode first, UnaryOperationNode second)
-
Constructor Details
-
DefaultNodeEqualityComparer
public DefaultNodeEqualityComparer()
-
-
Method Details
-
areEqual
- Specified by:
areEqual
in interfaceNodeEqualityComparer
-
callStatementsEqual
-
constructorCallsEqual
-
argumentsEqual
protected boolean argumentsEqual(List<BslExpression> argumentsOfFirst, List<BslExpression> argumentsOfSecond) -
methodCallsEqual
-
ternaryOperatorsEqual
-
unaryOperationsEqual
-
binaryOperationsEqual
-
identifiersEqual
-
literalsEqual
-