public abstract class MethodConfigurationRule extends Object
| Constructor and Description |
|---|
MethodConfigurationRule() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
apply(ConstrainedExecutable method,
ConstrainedExecutable otherMethod)
Applies this rule.
|
protected boolean |
isDefinedOnParallelType(ConstrainedExecutable executable,
ConstrainedExecutable otherExecutable)
Whether
otherExecutable is defined on a parallel of the declaring
type of executable or not. |
protected boolean |
isDefinedOnSubType(ConstrainedExecutable executable,
ConstrainedExecutable otherExecutable)
Whether
otherExecutable is defined on a subtype of the declaring
type of executable or not. |
protected boolean |
isStrictSubType(Class<?> clazz,
Class<?> otherClazz)
Whether
otherClazz is a strict subtype of clazz or not. |
protected static final Log log
public abstract void apply(ConstrainedExecutable method, ConstrainedExecutable otherMethod)
ExecutableMetaData.Builder.method - The first method to check.otherMethod - The other method to check.ConstraintDeclarationException - If this rule is violated by the two given methods.protected boolean isStrictSubType(Class<?> clazz, Class<?> otherClazz)
otherClazz is a strict subtype of clazz or not.clazz - the super type to check againstotherClazz - the subtype to checktrue if otherClazz is a strict subtype of clazz, false otherwiseprotected boolean isDefinedOnSubType(ConstrainedExecutable executable, ConstrainedExecutable otherExecutable)
otherExecutable is defined on a subtype of the declaring
type of executable or not.executable - the executable to check againstotherExecutable - the executable to checktrue if otherExecutable is defined on a subtype of the declaring type of
otherExecutable, false otherwiseprotected boolean isDefinedOnParallelType(ConstrainedExecutable executable, ConstrainedExecutable otherExecutable)
otherExecutable is defined on a parallel of the declaring
type of executable or not.executable - the executable to check againstotherExecutable - the executable to checktrue if otherExecutable is defined on a parallel of the declaring type of
otherExecutable, false otherwiseCopyright © 2018 JBoss by Red Hat. All rights reserved.