|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lexicalscope.fluentreflection.ReflectionMatchers
public final class ReflectionMatchers
A whole bunch of matchers suitable for selecting program elements
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ReflectionMatcher<FluentMember> hasNameStartingWith(String prefix)
prefix
- the prefix
public static ReflectionMatcher<FluentMember> hasNameEndingWith(String suffix)
suffix
- the suffix
public static ReflectionMatcher<FluentMember> hasNameMatching(String regex)
regex
- the regular expression
public static ReflectionMatcher<FluentMember> hasNameContaining(CharSequence substring)
substring
- the substring
public static ReflectionMatcher<FluentMember> hasName(String name)
name
- the name
public static ReflectionMatcher<FluentMember> hasPropertyName(String name)
public static ReflectionMatcher<FluentMember> declaredBy(Class<?> declaringClass)
declaringClass
- the declaring class
public static ReflectionMatcher<FluentClass<?>> hasNoInterfaces()
public static ReflectionMatcher<FluentClass<?>> hasNoSuperclasses()
public static ReflectionMatcher<FluentClass<?>> hasInterface(Class<?> interfac3)
public static ReflectionMatcher<FluentClass<?>> isAnInterface()
public static ReflectionMatcher<FluentClass<?>> hasSimpleName(String simpleName)
public static ReflectionMatcher<FluentClass<?>> anyReflectedType()
public static ReflectionMatcher<FluentClass<?>> reflectingOn(Class<?> klass)
public static ReflectionMatcher<FluentClass<?>> assignableFrom(Class<?> klass)
public static ReflectionMatcher<FluentClass<?>> assignableFrom(FluentClass<?> klass)
public static ReflectionMatcher<FluentConstructor<?>> reflectingOnConstructor(Constructor<?> constructor)
public static ReflectionMatcher<FluentMember> hasArgumentCount(int argumentCount)
public static ReflectionMatcher<FluentMember> hasNoArguments()
public static ReflectionMatcher<FluentMember> hasArguments(Class<?>... argTypes)
public static ReflectionMatcher<FluentMember> canBeCalledWithArguments(Object... args)
public static ReflectionMatcher<FluentMember> hasArgumentList(List<Class<?>> argTypes)
public static ReflectionMatcher<FluentMember> hasArgumentsMatching(org.hamcrest.Matcher<? super FluentClass<?>>... argTypes)
public static ReflectionMatcher<FluentMember> hasArgumentListMatching(List<org.hamcrest.Matcher<? super FluentClass<?>>> argTypes)
public static ReflectionMatcher<FluentMember> hasReflectedArguments(FluentClass<?>... argTypes)
public static ReflectionMatcher<FluentMember> hasReflectedArgumentList(List<FluentClass<?>> argTypes)
public static ReflectionMatcher<FluentMember> hasType(Class<?> returnType)
public static ReflectionMatcher<FluentMember> hasVoidType()
public static ReflectionMatcher<FluentMember> hasNonVoidType()
public static ReflectionMatcher<FluentMember> hasType(FluentClass<?> returnType)
public static ReflectionMatcher<FluentMember> hasType(org.hamcrest.Matcher<? super FluentClass<?>> returnType)
public static ReflectionMatcher<FluentAnnotated> annotatedWith(Class<? extends Annotation> annotation)
public static ReflectionMatcher<FluentMember> isStatic()
public static ReflectionMatcher<FluentMember> isNotStatic()
public static <T> ReflectionMatcher<T> not(ReflectionMatcher<T> matcher)
public static ReflectionMatcher<FluentMember> isQuery()
public static ReflectionMatcher<FluentMember> isGetter()
public static ReflectionMatcher<FluentMember> isMutator()
public static ReflectionMatcher<FluentMember> isSetter()
public static ReflectionMatcher<FluentMember> isExistence()
public static ReflectionMatcher<FluentMember> isHashCodeMethod()
public static ReflectionMatcher<FluentMember> isEqualsMethod()
public static ReflectionMatcher<FluentMember> isToStringMethod()
public static ReflectionMatcher<FluentMember> isPublicMethod()
public static org.hamcrest.Matcher<? super FluentMember> isDeclaredByStrictSubtypeOf(Class<?> klass)
public static org.hamcrest.Matcher<? super FluentClass<?>> isStrictSubtypeOf(Class<?> klass)
public static ReflectionMatcher<FluentField> isReflectingOnField(Field field)
public static ReflectionMatcher<FluentMember> isFinal()
public static ReflectionMatcher<FluentMember> hasVisibility(Visibility visibility)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |