One can use a similar technique to introspect a pattern.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ChildElementFinder.
Represents a child element. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public void | |
| public void | visitElement(NameClass nc, Pattern content)
Overrides com. Implements com.
|
| public void |
| children | back to summary |
|---|---|
| private final Set<E> children | |
| ChildElementFinder | back to summary |
|---|---|
| public ChildElementFinder() | |
| getChildren | back to summary |
|---|---|
| public Set Returns a set of | |
| visitAttribute | back to summary |
|---|---|
| public void visitAttribute(NameClass ns, Pattern value) Overrides com. Implements com. | |
| visitElement | back to summary |
|---|---|
| public void visitElement(NameClass nc, Pattern content) Overrides com. Implements com. | |
| visitList | back to summary |
|---|---|
| public void visitList(Pattern p) Overrides com. Implements com. | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| content | back to summary |
|---|---|
| public final Pattern content | |
| nc | back to summary |
|---|---|
| public final NameClass nc | |
| Element | back to summary |
|---|---|
| public Element(NameClass nc, Pattern content) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |