Interface MethodsShould<CONJUNCTION extends MethodsShouldConjunction>
-
- All Superinterfaces:
CodeUnitsShould<CONJUNCTION>
,MembersShould<CONJUNCTION>
public interface MethodsShould<CONJUNCTION extends MethodsShouldConjunction> extends CodeUnitsShould<CONJUNCTION>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CONJUNCTION
beFinal()
Asserts that methods are final.CONJUNCTION
beStatic()
Asserts that methods are static.CONJUNCTION
notBeFinal()
Asserts that methods are non-final.CONJUNCTION
notBeStatic()
Asserts that methods are non-static.-
Methods inherited from interface com.tngtech.archunit.lang.syntax.elements.CodeUnitsShould
declareThrowableOfType, declareThrowableOfType, declareThrowableOfType, haveRawParameterTypes, haveRawParameterTypes, haveRawParameterTypes, haveRawReturnType, haveRawReturnType, haveRawReturnType, notDeclareThrowableOfType, notDeclareThrowableOfType, notDeclareThrowableOfType, notHaveRawParameterTypes, notHaveRawParameterTypes, notHaveRawParameterTypes, notHaveRawReturnType, notHaveRawReturnType, notHaveRawReturnType
-
Methods inherited from interface com.tngtech.archunit.lang.syntax.elements.MembersShould
beAnnotatedWith, beAnnotatedWith, beAnnotatedWith, beDeclaredIn, beDeclaredIn, beDeclaredInClassesThat, beDeclaredInClassesThat, beMetaAnnotatedWith, beMetaAnnotatedWith, beMetaAnnotatedWith, bePackagePrivate, bePrivate, beProtected, bePublic, haveFullName, haveFullNameMatching, haveFullNameNotMatching, haveModifier, haveName, haveNameContaining, haveNameEndingWith, haveNameMatching, haveNameNotContaining, haveNameNotEndingWith, haveNameNotMatching, haveNameNotStartingWith, haveNameStartingWith, notBeAnnotatedWith, notBeAnnotatedWith, notBeAnnotatedWith, notBeDeclaredIn, notBeDeclaredIn, notBeMetaAnnotatedWith, notBeMetaAnnotatedWith, notBeMetaAnnotatedWith, notBePackagePrivate, notBePrivate, notBeProtected, notBePublic, notHaveFullName, notHaveModifier, notHaveName
-
-
-
-
Method Detail
-
beStatic
@PublicAPI(usage=ACCESS) CONJUNCTION beStatic()
Asserts that methods are static.- Returns:
- A syntax element that can either be used as working rule, or to continue specifying a more complex rule
-
notBeStatic
@PublicAPI(usage=ACCESS) CONJUNCTION notBeStatic()
Asserts that methods are non-static.- Returns:
- A syntax element that can either be used as working rule, or to continue specifying a more complex rule
-
beFinal
@PublicAPI(usage=ACCESS) CONJUNCTION beFinal()
Asserts that methods are final.- Returns:
- A syntax element that can either be used as working rule, or to continue specifying a more complex rule
-
notBeFinal
@PublicAPI(usage=ACCESS) CONJUNCTION notBeFinal()
Asserts that methods are non-final.- Returns:
- A syntax element that can either be used as working rule, or to continue specifying a more complex rule
-
-