public interface Pattern extends Node
| Modifier and Type | Interface and Description |
|---|---|
static class |
Pattern.Impl |
static interface |
Pattern.Visitor<P,R> |
| Modifier and Type | Method and Description |
|---|---|
default <P,R> R |
accept(Node.Visitor<P,R> visitor,
P par) |
default <P,R> R |
accept(Pattern.Visitor<P,R> visitor,
P par) |
java.util.List<Constraint> |
getConstraints() |
Name |
getName() |
Type |
getType() |
static Pattern |
of(Type type,
Name name,
java.util.List<Constraint> constraints) |
void |
setConstraints(java.util.List<Constraint> constraints) |
void |
setName(Name name) |
void |
setType(Type type) |
static Pattern of(Type type, Name name, java.util.List<Constraint> constraints)
Type getType()
void setType(Type type)
Name getName()
void setName(Name name)
java.util.List<Constraint> getConstraints()
void setConstraints(java.util.List<Constraint> constraints)
default <P,R> R accept(Pattern.Visitor<P,R> visitor, P par)
default <P,R> R accept(Node.Visitor<P,R> visitor, P par)