Package randoop.reflection
package randoop.reflection
-
ClassDescriptionInterface for predicates that check whether a class or class member is considered accessible.AnyAccessibilityPredicate is a
AccessibilityPredicate
that always returns true.NotPrivateAccessibilityPredicate is aAccessibilityPredicate
that returns true in the case that the class/method/constructor/field is not declared to be private.A predicate that tests for accessibility of a class, method, constructor, or field relative to a particular package.PublicAccessibilityPredicate is aAccessibilityPredicate
that returns true in the case that the class/method/constructor/field is public.CheckRepExtractor
is aClassVisitor
that inspects the methods passed to it to see if they are annotated withCheckRep
, are non-static, and have either aboolean
orvoid
return type.ClassLiteralExtractor
is aClassVisitor
that extracts literals from the bytecode of each class visited, adding a sequence for each to a map associating a sequence with a type.ClassVisitor defines the interface for a visitor class that uses reflection to collect information about a class and its members.Default implementation of theClassVisitor
class.Default implementations of methods that indicate what is "under test": whether a class, method, constructor, or field should be used in Randoop's exploration.Represents when a user provides a signature that is excluded by a predicate.MethodLiteralFileReader.parse(java.lang.String)
reads a file specifying literal values to use during generation.Tests whether theRawSignature
of an operation is matched by an omit.OperationExtractor is aClassVisitor
that creates a collection ofTypedOperation
objects for a particularClassOrInterfaceType
through its visit methods as called byReflectionManager.apply(Class)
.OperationModel
represents the information context from which tests are generated.Represents the raw type signature for anjava.lang.reflect.AccessibleObject
.ReflectionManager contains a set of visitors and an accessibility predicate.Methods that indicate whether a class, method, constructor, or field should be used in Randoop's exploration.Represents exception when parsing signature strings usingSignatureParser
.Parses type signature strings used to identify methods and constructors in input.Stores the mutable state of a class, allowing it to be saved, printed and restored.TestValueExtractor
is aClassVisitor
that inspects the fields passed to it to see if they are annotated withTestValue
, are static, and have type that is primitive, String, or an array of primitive or String.TypeExtractor
is aClassVisitor
that extracts both the class type, and concrete types that are used in a class as either a parameter, a return type, or a field type.Instantiates type parameters from a set of input types.TypeNames provides a pair of static methods to: get string names for classes and primitive types, and get theClass
object for a string representing a class or primitive type.Represents a set of lists of candidate type arguments for aParameterizedType
, and uses this set to construct substitutions for a list ofTypeArgument
objects.