|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cogroo.tools.checker.rules.util.EqualsUtils
public class EqualsUtils
Utility class to compare patterns Elements, Compositions,
TagMasks, Booleans and Strings.
| Constructor Summary | |
|---|---|
EqualsUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
areBooleanEquals(Boolean boolean1,
Boolean boolean2)
Checks if two Booleans are equals. |
static boolean |
areCompositionEquals(Composition c1,
Composition c2)
|
static boolean |
areElementEquals(Element element1,
Element element2)
Checks if two elements are equals. |
static boolean |
arePatternElementEquals(PatternElement p1,
PatternElement p2)
|
static boolean |
areStringEquals(String string1,
String string2)
Checks if two strings are equals. |
static boolean |
areTagMaskEquals(TagMask tagMask1,
TagMask tagMask2)
Checks if two tag masks are equals. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EqualsUtils()
| Method Detail |
|---|
public static boolean arePatternElementEquals(PatternElement p1,
PatternElement p2)
public static boolean areCompositionEquals(Composition c1,
Composition c2)
public static boolean areElementEquals(Element element1,
Element element2)
element1 - from tree element Elementelement2 - from rule element Element
public static boolean areTagMaskEquals(TagMask tagMask1,
TagMask tagMask2)
tagMask1 - from tree element TagMasktagMask2 - from rule element TagMask
public static boolean areBooleanEquals(Boolean boolean1,
Boolean boolean2)
boolean1 - from tree tree elementboolean2 - from rule element
public static boolean areStringEquals(String string1,
String string2)
string1 - from tree elementstring2 - from rule element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||