tool.designpatterns.Pattern Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of staticanalyser Show documentation
Show all versions of staticanalyser Show documentation
A static design pattern verification plugin.
The newest version!
package tool.designpatterns;
/**
* An enum that contains all patterns we are able to identify and verify. If a
* new pattern has been added, then the enum must be expanded manually.
*/
public enum Pattern {
IMMUTABLE(PatternGroup.IMMUTABLE),
SINGLETON(PatternGroup.SINGLETON),
DECORATOR_INTERFACE_COMPONENT(PatternGroup.DECORATOR),
DECORATOR_CONCRETE_COMPONENT(PatternGroup.DECORATOR),
DECORATOR_ABSTRACT_DECORATOR(PatternGroup.DECORATOR),
DECORATOR_CONCRETE_DECORATOR(PatternGroup.DECORATOR),
ADAPTER_ADAPTER(PatternGroup.ADAPTER),
ADAPTER_ADAPTEE(PatternGroup.ADAPTER),
COMPOSITE_COMPONENT(PatternGroup.COMPOSITE),
COMPOSITE_CONTAINER(PatternGroup.COMPOSITE),
COMPOSITE_LEAF(PatternGroup.COMPOSITE);
private PatternGroup group;
Pattern(PatternGroup group) {
this.group = group;
}
PatternGroup getGroup() {
return this.group;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy