A B C D E F G H I L M N O P R S T V W 

A

accept(TypeVisitor<R, P>, P) - Method in class org.inferred.testing.unit.ClassTypeImpl
 
accept(ElementVisitor<R, P>, P) - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
accept(TypeVisitor<R, P>, P) - Method in enum org.inferred.testing.unit.NoTypes
 
accept(ElementVisitor<R, P>, P) - Method in class org.inferred.testing.unit.PackageElementImpl
 
accept(TypeVisitor<R, P>, P) - Method in class org.inferred.testing.unit.PrimitiveTypeImpl
 
addImport(Class<?>) - Method in class org.inferred.testing.behavior.TestBuilder
 
addImport(String) - Method in class org.inferred.testing.behavior.TestBuilder
 
addLine(String, Object...) - Method in class org.inferred.testing.behavior.SourceBuilder
Appends a formatted line of code to the source.
addLine(String, Object...) - Method in class org.inferred.testing.behavior.TestBuilder
Appends a formatted line of code to the source.
addStaticImport(Class<?>, String) - Method in class org.inferred.testing.behavior.TestBuilder
 
addStaticImport(String, String) - Method in class org.inferred.testing.behavior.TestBuilder
 
apply(Statement, Description) - Method in class org.inferred.testing.model.ModelRule
 
asElement() - Method in class org.inferred.testing.unit.ClassTypeImpl
 
asType() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
asType() - Method in class org.inferred.testing.unit.PackageElementImpl
 

B

BehaviorTester - Class in org.inferred.testing.behavior
Convenience class for performing behavioral tests of API-generating annotation processors.
BehaviorTester() - Constructor for class org.inferred.testing.behavior.BehaviorTester
 
build() - Method in class org.inferred.testing.behavior.SourceBuilder
Returns a JavaFileObject for the source added to the builder.
build() - Method in class org.inferred.testing.behavior.TestBuilder
Returns a JavaFileObject for the test source added to the builder.

C

CHAR - Static variable in class org.inferred.testing.unit.PrimitiveTypeImpl
 
charAt(int) - Method in class org.inferred.testing.unit.NameImpl
 
ClassTypeImpl - Class in org.inferred.testing.unit
Fake implementation of DeclaredType for unit tests.
ClassTypeImpl.ClassElementImpl - Class in org.inferred.testing.unit
Fake implementation of TypeElement for unit tests.
ClassTypeImpl.ClassElementImpl() - Constructor for class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
close() - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
CompilationException - Exception in org.inferred.testing.behavior
CompilationException is thrown when a CompilationTask fails, to capture any emitted Diagnostic instances.
CompilationException(List<Diagnostic<? extends JavaFileObject>>) - Constructor for exception org.inferred.testing.behavior.CompilationException
 
CompilationException(CompilationException) - Constructor for exception org.inferred.testing.behavior.CompilationException
 
contentEquals(CharSequence) - Method in class org.inferred.testing.unit.NameImpl
 
create() - Static method in class org.inferred.testing.model.Model
 

D

destroy() - Method in class org.inferred.testing.model.Model
Gracefully shuts down the compiler thread.
DOUBLE - Static variable in class org.inferred.testing.unit.PrimitiveTypeImpl
 

E

elementUtils() - Method in class org.inferred.testing.model.Model
Returns a Elements implementation.
environment() - Method in class org.inferred.testing.model.Model
Returns a ProcessingEnvironment implementation.
equals(Object) - Method in class org.inferred.testing.unit.ClassTypeImpl
 
equals(Object) - Method in class org.inferred.testing.unit.NameImpl
 
equals(Object) - Method in class org.inferred.testing.unit.PackageElementImpl
 

F

FakeMessager - Class in org.inferred.testing.unit
Fake implementation of Messager that stores all messages as strings of the form "[SEVERITY] Message", indexed (non-uniquely) by element.
FakeMessager() - Constructor for class org.inferred.testing.unit.FakeMessager
 
FLOAT - Static variable in class org.inferred.testing.unit.PrimitiveTypeImpl
 
flush() - Method in class org.inferred.testing.behavior.TempJavaFileManager
 

G

getAnnotation(Class<A>) - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getAnnotation(Class<A>) - Method in class org.inferred.testing.unit.PackageElementImpl
 
getAnnotationMirrors() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getAnnotationMirrors() - Method in class org.inferred.testing.unit.PackageElementImpl
 
getClassLoader(JavaFileManager.Location) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
getEnclosedElements() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getEnclosedElements() - Method in class org.inferred.testing.unit.PackageElementImpl
 
getEnclosingElement() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getEnclosingElement() - Method in class org.inferred.testing.unit.PackageElementImpl
 
getEnclosingType() - Method in class org.inferred.testing.unit.ClassTypeImpl
 
getFileForInput(JavaFileManager.Location, String, String) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
getFileForOutput(JavaFileManager.Location, String, String, FileObject) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
getInterfaces() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getJavaFileForInput(JavaFileManager.Location, String, JavaFileObject.Kind) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
getJavaFileForOutput(JavaFileManager.Location, String, JavaFileObject.Kind, FileObject) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
getKind() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getKind() - Method in class org.inferred.testing.unit.ClassTypeImpl
 
getKind() - Method in class org.inferred.testing.unit.PackageElementImpl
 
getKind() - Method in class org.inferred.testing.unit.PrimitiveTypeImpl
 
getMessage() - Method in exception org.inferred.testing.behavior.CompilationException
 
getMessagesByElement() - Method in class org.inferred.testing.unit.FakeMessager
 
getModifiers() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getModifiers() - Method in class org.inferred.testing.unit.PackageElementImpl
 
getNestingKind() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getQualifiedName() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getQualifiedName() - Method in class org.inferred.testing.unit.PackageElementImpl
 
getSimpleName() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getSimpleName() - Method in class org.inferred.testing.unit.PackageElementImpl
 
getSuperclass() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 
getTypeArguments() - Method in class org.inferred.testing.unit.ClassTypeImpl
 
getTypeParameters() - Method in class org.inferred.testing.unit.ClassTypeImpl.ClassElementImpl
 

H

handleOption(String, Iterator<String>) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
hashCode() - Method in class org.inferred.testing.unit.ClassTypeImpl
 
hashCode() - Method in class org.inferred.testing.unit.NameImpl
 
hashCode() - Method in class org.inferred.testing.unit.PackageElementImpl
 
hasLocation(JavaFileManager.Location) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 

I

inferBinaryName(JavaFileManager.Location, JavaFileObject) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
INT - Static variable in class org.inferred.testing.unit.PrimitiveTypeImpl
 
isSameFile(FileObject, FileObject) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
isSupportedOption(String) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 
isUnnamed() - Method in class org.inferred.testing.unit.PackageElementImpl
 

L

length() - Method in class org.inferred.testing.unit.NameImpl
 
list(JavaFileManager.Location, String, Set<JavaFileObject.Kind>, boolean) - Method in class org.inferred.testing.behavior.TempJavaFileManager
 

M

Model - Class in org.inferred.testing.model
Utility class for creating javax.lang.model instances for testing.
Model() - Constructor for class org.inferred.testing.model.Model
 
ModelRule - Class in org.inferred.testing.model
TestRule for creating javax.lang.model instances in a unit test.
ModelRule() - Constructor for class org.inferred.testing.model.ModelRule
 

N

NameImpl - Class in org.inferred.testing.unit
 
NameImpl(String) - Constructor for class org.inferred.testing.unit.NameImpl
 
newElementAnnotatedWith(Class<? extends Annotation>, String...) - Method in class org.inferred.testing.model.Model
Parses the supplied code, returning the Element annotated with the given annotation.
newElementWithMarker(String...) - Method in class org.inferred.testing.model.Model
Parses the supplied code, returning the Element marked with "--->".
newInnerClass(DeclaredType, String) - Static method in class org.inferred.testing.unit.ClassTypeImpl
 
newNestedClass(TypeElement, String) - Static method in class org.inferred.testing.unit.ClassTypeImpl
 
newTopLevelClass(String) - Static method in class org.inferred.testing.unit.ClassTypeImpl
 
newType(String...) - Method in class org.inferred.testing.model.Model
Parses the supplied type definition, returning its TypeElement.
NoTypes - Enum in org.inferred.testing.unit
Fake implementation of NoType for unit tests.

O

org.inferred.testing.behavior - package org.inferred.testing.behavior
Convenience framework around the Compiler API suitable for end-to-end testing of Processor implementations.
org.inferred.testing.model - package org.inferred.testing.model
Real implementations of javax.annotation types taken from a Compiler running in a separate thread.
org.inferred.testing.unit - package org.inferred.testing.unit
Fake implementations of javax.annotation types for unit testing annotation processors.

P

PackageElementImpl - Class in org.inferred.testing.unit
 
PackageElementImpl(String) - Constructor for class org.inferred.testing.unit.PackageElementImpl
 
PrimitiveTypeImpl - Class in org.inferred.testing.unit
Fake implementation of PrimitiveType for unit tests.
printMessage(Diagnostic.Kind, CharSequence) - Method in class org.inferred.testing.unit.FakeMessager
 
printMessage(Diagnostic.Kind, CharSequence, Element) - Method in class org.inferred.testing.unit.FakeMessager
 
printMessage(Diagnostic.Kind, CharSequence, Element, AnnotationMirror) - Method in class org.inferred.testing.unit.FakeMessager
 
printMessage(Diagnostic.Kind, CharSequence, Element, AnnotationMirror, AnnotationValue) - Method in class org.inferred.testing.unit.FakeMessager
 

R

runTest() - Method in class org.inferred.testing.behavior.BehaviorTester
Compiles, loads and tests everything given to BehaviorTester.with(javax.annotation.processing.Processor).

S

SourceBuilder - Class in org.inferred.testing.behavior
Simple builder API for an in-memory JavaFileObject.
SourceBuilder() - Constructor for class org.inferred.testing.behavior.SourceBuilder
 
start() - Method in class org.inferred.testing.model.Model
Starts up the compiler thread and waits for it to return the processing environment.
subSequence(int, int) - Method in class org.inferred.testing.unit.NameImpl
 

T

Target - Annotation Type in org.inferred.testing.model
Annotation used internally within the Model implementation to target elements.
TempJavaFileManager - Class in org.inferred.testing.behavior
Implementation of JavaFileManager that provides its own temporary output storage.
TempJavaFileManager() - Constructor for class org.inferred.testing.behavior.TempJavaFileManager
 
TestBuilder - Class in org.inferred.testing.behavior
Simple builder API for a test method, suitable for use in BehaviorTester.
TestBuilder() - Constructor for class org.inferred.testing.behavior.TestBuilder
 
toString() - Method in class org.inferred.testing.unit.ClassTypeImpl
 
toString() - Method in class org.inferred.testing.unit.NameImpl
 
toString() - Method in enum org.inferred.testing.unit.NoTypes
 
toString() - Method in class org.inferred.testing.unit.PackageElementImpl
 
toString() - Method in class org.inferred.testing.unit.PrimitiveTypeImpl
 
typeElement(Class<?>) - Method in class org.inferred.testing.model.Model
Returns the TypeElement of cls.
typeElement(String) - Method in class org.inferred.testing.model.Model
Returns the TypeElement of qualifiedType.
typeMirror(Class<?>) - Method in class org.inferred.testing.model.Model
Returns a TypeMirror for the given class (raw T, not T<?>, if T is generic).
typeMirror(TypeToken<?>) - Method in class org.inferred.testing.model.Model
Returns a TypeMirror for the given type.
typeMirror(String, TypeMirror...) - Method in class org.inferred.testing.model.Model
Returns a TypeMirror for the given type, substituting any provided arguments for %1, %2, etc.
typeUtils() - Method in class org.inferred.testing.model.Model
Returns a Types implementation.

V

valueOf(String) - Static method in enum org.inferred.testing.unit.NoTypes
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.inferred.testing.unit.NoTypes
Returns an array containing the constants of this enum type, in the order they are declared.

W

with(Processor) - Method in class org.inferred.testing.behavior.BehaviorTester
Adds a Processor to pass to the compiler when BehaviorTester.runTest() is invoked.
with(JavaFileObject) - Method in class org.inferred.testing.behavior.BehaviorTester
Adds a JavaFileObject to pass to the compiler when BehaviorTester.runTest() is invoked.
withContextClassLoader() - Method in class org.inferred.testing.behavior.BehaviorTester
Ensures Thread.getContextClassLoader() will return a class loader containing the compiled sources.
A B C D E F G H I L M N O P R S T V W 

Copyright © 2015 inferred.org. All rights reserved.