Index
All Classes|All Packages|Constant Field Values|Deprecated API|Serialized Form
A
- ABSTRACT - Enum constant in enum spoon.metamodel.ConceptKind
-
Types of the metamodel which represent abstract concepts of Spoon that cannot be directly instantiated.
- ABSTRACT - Enum constant in enum spoon.reflect.declaration.ModifierKind
-
The modifier abstract
- ABSTRACT - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- AbstractAnnotationProcessor<A extends Annotation,E extends CtElement> - Class in spoon.processing
-
This class defines an abstract annotation processor to be subclassed by the user for defining new annotation processors including Java 8 annotations.
- AbstractAnnotationProcessor() - Constructor for class spoon.processing.AbstractAnnotationProcessor
-
Empty constructor only for all processors (invoked by Spoon).
- AbstractAssert<T extends AbstractAssert<T,A>,A> - Class in spoon.testing
-
Base contract for all assertion objects: the minimum functionality that any assertion object should provide.
- AbstractAssert(A, Class<?>) - Constructor for class spoon.testing.AbstractAssert
- AbstractCtElementAssert<T extends AbstractCtElementAssert<T>> - Class in spoon.testing
- AbstractCtElementAssert(CtElement, Class<?>) - Constructor for class spoon.testing.AbstractCtElementAssert
- AbstractCtPackageAssert<T extends AbstractCtPackageAssert<T>> - Class in spoon.testing
- AbstractCtPackageAssert(CtPackage, Class<?>) - Constructor for class spoon.testing.AbstractCtPackageAssert
- AbstractFileAssert<T extends AbstractFileAssert<T>> - Class in spoon.testing
- AbstractFileAssert(File, Class<?>) - Constructor for class spoon.testing.AbstractFileAssert
- AbstractFilter<T extends CtElement> - Class in spoon.reflect.visitor.filter
-
Defines an abstract filter based on matching on the element types.
- AbstractFilter() - Constructor for class spoon.reflect.visitor.filter.AbstractFilter
-
Creates a filter with the type computed by reflection from the matches method parameter
- AbstractFilter(Class<? super T>) - Constructor for class spoon.reflect.visitor.filter.AbstractFilter
-
Creates a filter with the type of the potentially matching elements.
- AbstractManualProcessor - Class in spoon.processing
-
This class defines an abstract processor to be subclassed by the user for defining new manual processors.
- AbstractManualProcessor() - Constructor for class spoon.processing.AbstractManualProcessor
-
Empty constructor only for all processors (invoked by Spoon).
- AbstractNode - Class in spoon.pattern.internal.node
-
Represents a parameterized Pattern ValueResolver, which can be used to generate a zero, one or more copies of model using provided parameters to match zero, one or more instances of model and deliver a matching parameters
- AbstractNode() - Constructor for class spoon.pattern.internal.node.AbstractNode
- AbstractParallelProcessor<E extends CtElement> - Class in spoon.processing
-
AbstractParallelProcessor allows using multiple threads for concurrent processing with
AbstractProcessor
. - AbstractParallelProcessor(Iterable<Processor<E>>) - Constructor for class spoon.processing.AbstractParallelProcessor
-
Creates a new AbstractParallelProcessor from given iterable.
- AbstractParallelProcessor(Iterable<Processor<E>>, int) - Constructor for class spoon.processing.AbstractParallelProcessor
-
Creates a new AbstractParallelProcessor from given iterable.
- AbstractParallelProcessor(Consumer<E>, int) - Constructor for class spoon.processing.AbstractParallelProcessor
-
Creates a new AbstractParallelProcessor from given consumer.
- AbstractParameterInfo - Class in spoon.pattern.internal.parameter
- AbstractParameterInfo(ParameterInfo) - Constructor for class spoon.pattern.internal.parameter.AbstractParameterInfo
- AbstractPathElement<P extends CtElement,T extends CtElement> - Class in spoon.reflect.path.impl
-
Partial implementation for CtPathElement
- AbstractPathElement() - Constructor for class spoon.reflect.path.impl.AbstractPathElement
- AbstractProcessor<E extends CtElement> - Class in spoon.processing
-
This class defines an abstract processor to be subclassed by the user for defining new processors.
- AbstractProcessor() - Constructor for class spoon.processing.AbstractProcessor
-
Empty constructor only for all processors (invoked by Spoon).
- AbstractReferenceFilter<T extends CtReference> - Class in spoon.reflect.visitor.filter
-
This class defines an abstract reference filter that needs to be subclassed in order to define the matching criteria.
- AbstractReferenceFilter() - Constructor for class spoon.reflect.visitor.filter.AbstractReferenceFilter
-
Creates a filter with the type computed by reflection from the matches method parameter
- AbstractReferenceFilter(Class<? super T>) - Constructor for class spoon.reflect.visitor.filter.AbstractReferenceFilter
-
Creates a reference filter with the type of the potentially matching references.
- AbstractRenameRefactoring<T extends CtNamedElement> - Class in spoon.refactoring
-
abstract implementation of rename element refactoring
- AbstractRenameRefactoring(Pattern) - Constructor for class spoon.refactoring.AbstractRenameRefactoring
- AbstractTemplate<T extends CtElement> - Class in spoon.template
-
handles the well-formedness and helper methods of templates
- AbstractTemplate() - Constructor for class spoon.template.AbstractTemplate
- accept(CtImportVisitor) - Method in class spoon.experimental.CtUnresolvedImport
- accept(CtImportVisitor) - Method in interface spoon.reflect.declaration.CtImport
-
Accepts a
CtImportVisitor
- accept(CtImportVisitor) - Method in class spoon.support.reflect.declaration.CtImportImpl
- accept(CtVisitor) - Method in class spoon.experimental.CtUnresolvedImport
- accept(CtVisitor) - Method in class spoon.reflect.factory.ModuleFactory.CtUnnamedModule
- accept(CtVisitor) - Method in interface spoon.reflect.visitor.CtVisitable
-
Accepts a visitor
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtAnnotationFieldAccessImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtArrayReadImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtArrayWriteImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtAssertImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtAssignmentImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtBinaryOperatorImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtBlockImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtBreakImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtCaseImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtCatchImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtCatchVariableImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtCodeSnippetExpressionImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtCodeSnippetStatementImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtCommentImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtConditionalImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtConstructorCallImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtContinueImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtDoImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtExecutableReferenceExpressionImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtFieldReadImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtFieldWriteImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtForEachImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtForImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtIfImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtInvocationImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtJavaDocImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtJavaDocTagImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtLambdaImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtLiteralImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtLocalVariableImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtNewArrayImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtNewClassImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtOperatorAssignmentImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtReturnImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtStatementListImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtSuperAccessImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtSwitchExpressionImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtSwitchImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtSynchronizedImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtTextBlockImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtThisAccessImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtThrowImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtTryImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtTryWithResourceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtTypeAccessImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtTypePatternImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtUnaryOperatorImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtVariableReadImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtVariableWriteImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtWhileImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.code.CtYieldStatementImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtAnnotationImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtAnnotationMethodImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtAnnotationTypeImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtAnonymousExecutableImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtClassImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtCompilationUnitImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtConstructorImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtEnumImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtEnumValueImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtFieldImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtImportImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtInterfaceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtMethodImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtModuleRequirementImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtPackageDeclarationImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtPackageExportImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtPackageImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtParameterImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtProvidedServiceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtRecordComponentImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtRecordImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.declaration.CtUsedServiceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtArrayTypeReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtCatchVariableReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtExecutableReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtFieldReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtIntersectionTypeReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtLocalVariableReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtModuleReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtPackageReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtParameterReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtTypeMemberWildcardImportReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtTypeParameterReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtUnboundVariableReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtVariableReferenceImpl
- accept(CtVisitor) - Method in class spoon.support.reflect.reference.CtWildcardReferenceImpl
- accept(T) - Method in interface spoon.reflect.visitor.chain.CtConsumer
-
Implement this method to do something with object "t" passed as parameter
- acceptResult(CompilationResult) - Method in class spoon.support.compiler.jdt.TreeBuilderRequestor
- ACCESSED_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- AccessibleVariablesFinder - Class in spoon.reflect.visitor
-
Find local variables catch, parameters, fields, super fields
- AccessibleVariablesFinder(CtElement) - Constructor for class spoon.reflect.visitor.AccessibleVariablesFinder
- Action - Class in spoon.support.modelobs.action
-
defines an action change on the model
- ActionBasedChangeListener - Interface in spoon.support.modelobs
-
notifies all change on the AST
- ActionBasedChangeListenerImpl - Class in spoon.support.modelobs
-
This listener will propagate the change to the listener
- ActionBasedChangeListenerImpl() - Constructor for class spoon.support.modelobs.ActionBasedChangeListenerImpl
- actual - Variable in class spoon.testing.AbstractAssert
- adaptMethod(CtMethod<?>) - Method in class spoon.support.adaption.TypeAdaptor
-
Adapts a given method to the context of this type adapter.
- adaptType(CtType<?>) - Method in class spoon.support.adaption.TypeAdaptor
-
Adapts a type from a supertype to the context of this adaptor.
- adaptType(CtTypeInformation) - Method in class spoon.support.visitor.MethodTypingContext
- adaptType(CtTypeInformation) - Method in interface spoon.support.visitor.GenericTypeAdapter
-
adapts `type` to the
CtTypeReference
of the scope of thisGenericTypeAdapter
This mapping function is able to resolveCtTypeParameter
of:
A) input type or any super class or any enclosing class of input type or it's super class
B) super interfaces of input type or super interfaces of it's super classes.
The type reference is adapted recursive including all it's actual type arguments and bounds. - adaptType(CtTypeReference<?>) - Method in class spoon.support.adaption.TypeAdaptor
-
Adapts a type from a supertype to the context of this adaptor.
- adaptTypeParameter(CtTypeParameter) - Method in class spoon.support.visitor.ClassTypingContext
-
adapts `typeParam` to the
CtTypeReference
of scope of thisClassTypingContext
In can beCtTypeParameterReference
again - depending actual type arguments of thisClassTypingContext
. - adaptTypeParameter(CtTypeParameter) - Method in class spoon.support.visitor.MethodTypingContext
-
Adapts `typeParam` to the
CtTypeReference
of scope of thisMethodTypingContext
In can beCtTypeParameterReference
again - depending actual type arguments of thisMethodTypingContext
. - add(int, E) - Method in class spoon.support.util.SortedList
- add(int, T) - Method in class spoon.support.util.ModelList
- add(E) - Method in class spoon.support.util.SortedList
- add(CtExecutable<?>) - Method in class spoon.refactoring.MethodCallState
-
Adds a CtExecutable to the methods invoking this method.
- add(CtType<?>) - Method in class spoon.refactoring.MethodCallState
-
Adds a CtType to the fields invoking this method.
- add(ElementSourceFragment) - Method in class spoon.support.sniper.internal.ElementSourceFragment
-
adds `other`
ElementSourceFragment
into tree ofElementSourceFragment
s represented by this root element - add(T) - Method in class spoon.support.util.ModelList
- add(T) - Method in class spoon.support.util.ModelSet
-
Deprecated.
- ADD_FIRST - Enum constant in enum spoon.metamodel.MMMethodKind
-
void addFirst(T)
- ADD_LAST - Enum constant in enum spoon.metamodel.MMMethodKind
-
void add(T)
- ADD_ON - Enum constant in enum spoon.metamodel.MMMethodKind
-
void addOn(int, T)
- AddAction<T> - Class in spoon.support.modelobs.action
- AddAction(Context, T) - Constructor for class spoon.support.modelobs.action.AddAction
- addActualTypeArgument(CtTypeReference<?>) - Method in interface spoon.reflect.code.CtConstructorCall
-
Delegate to the executable reference of the constructor call.
- addActualTypeArgument(CtTypeReference<?>) - Method in interface spoon.reflect.code.CtInvocation
-
Delegate to the executable reference of the invocation.
- addActualTypeArgument(CtTypeReference<?>) - Method in interface spoon.reflect.code.CtNewClass
-
Delegate to the executable reference of the new class.
- addActualTypeArgument(CtTypeReference<?>) - Method in interface spoon.reflect.reference.CtActualTypeContainer
-
Adds a type argument.
- addActualTypeArgument(CtTypeReference<?>) - Method in class spoon.support.reflect.code.CtConstructorCallImpl
- addActualTypeArgument(CtTypeReference<?>) - Method in class spoon.support.reflect.code.CtInvocationImpl
- addActualTypeArgument(CtTypeReference<?>) - Method in class spoon.support.reflect.reference.CtExecutableReferenceImpl
- addActualTypeArgument(CtTypeReference<?>) - Method in class spoon.support.reflect.reference.CtTypeParameterReferenceImpl
- addActualTypeArgument(CtTypeReference<?>) - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
- addAll(Collection<? extends E>) - Method in class spoon.support.util.SortedList
- addAnnotation(CtAnnotation<? extends Annotation>) - Method in interface spoon.reflect.declaration.CtElement
-
Add an annotation for this element
- addAnnotation(CtAnnotation<? extends Annotation>) - Method in interface spoon.reflect.reference.CtTypeMemberWildcardImportReference
- addAnnotation(CtAnnotation<? extends Annotation>) - Method in class spoon.support.reflect.declaration.CtElementImpl
- addAnnotation(CtAnnotation<? extends Annotation>) - Method in class spoon.support.reflect.reference.CtTypeMemberWildcardImportReferenceImpl
- addAnnotation(CtAnnotation<Annotation>) - Method in class spoon.support.visitor.java.internal.AnnotationRuntimeBuilderContext
- addAnnotation(CtAnnotation<Annotation>) - Method in class spoon.support.visitor.java.internal.ExecutableRuntimeBuilderContext
- addAnnotation(CtAnnotation<Annotation>) - Method in class spoon.support.visitor.java.internal.PackageRuntimeBuilderContext
- addAnnotation(CtAnnotation<Annotation>) - Method in class spoon.support.visitor.java.internal.RecordComponentRuntimeBuilderContext
- addAnnotation(CtAnnotation<Annotation>) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addAnnotation(CtAnnotation<Annotation>) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- addAnnotation(CtAnnotation<Annotation>) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addAnnotation(CtAnnotation<Annotation>) - Method in class spoon.support.visitor.java.internal.VariableRuntimeBuilderContext
- addAnonymousExecutable(CtAnonymousExecutable) - Method in interface spoon.reflect.declaration.CtClass
-
Add an anonymous block to this class.
- addAnonymousExecutable(CtAnonymousExecutable) - Method in class spoon.support.reflect.declaration.CtClassImpl
- addArgument(String, String) - Method in class spoon.reflect.path.impl.AbstractPathElement
- addArgument(String, String) - Method in interface spoon.reflect.path.impl.CtPathElement
-
Add a path argument.
- addArgument(CtExpression<?>) - Method in interface spoon.reflect.code.CtAbstractInvocation
-
Adds an argument expression to the invocation.
- addArgument(CtExpression<?>) - Method in class spoon.support.reflect.code.CtConstructorCallImpl
- addArgument(CtExpression<?>) - Method in class spoon.support.reflect.code.CtInvocationImpl
- addArgumentAt(int, CtExpression<?>) - Method in interface spoon.reflect.code.CtAbstractInvocation
-
Adds an argument expression to the invocation at the specified position.
- addArgumentAt(int, CtExpression<?>) - Method in class spoon.support.reflect.code.CtConstructorCallImpl
- addArgumentAt(int, CtExpression<?>) - Method in class spoon.support.reflect.code.CtInvocationImpl
- addBlockTag(String) - Method in class spoon.javadoc.internal.Javadoc
- addBlockTag(String, String, String) - Method in class spoon.javadoc.internal.Javadoc
-
For tags like "@return good things" where tagName is "return", and the rest is content.
- addBlockTag(JavadocBlockTag) - Method in class spoon.javadoc.internal.Javadoc
- addBound(CtTypeReference<?>) - Method in interface spoon.reflect.reference.CtIntersectionTypeReference
-
Adds a bound.
- addBound(CtTypeReference<?>) - Method in class spoon.support.reflect.reference.CtIntersectionTypeReferenceImpl
- addCase(PrimitiveMatcher, RootNode) - Method in class spoon.pattern.internal.node.SwitchNode
-
Adds another case into this switch statement
- addCase(CtCase<? super S>) - Method in interface spoon.reflect.code.CtAbstractSwitch
-
Adds a case;
- addCase(CtCase<? super S>) - Method in class spoon.support.reflect.code.CtSwitchExpressionImpl
- addCase(CtCase<? super S>) - Method in class spoon.support.reflect.code.CtSwitchImpl
- addCaseAt(int, CtCase<? super S>) - Method in interface spoon.reflect.code.CtAbstractSwitch
-
Adds a case at the specified position.
- addCaseAt(int, CtCase<? super S>) - Method in class spoon.support.reflect.code.CtSwitchExpressionImpl
- addCaseAt(int, CtCase<? super S>) - Method in class spoon.support.reflect.code.CtSwitchImpl
- addCaseExpression(CtExpression<E>) - Method in class spoon.support.reflect.code.CtCaseImpl
- addCaseExpression(CtExpression<S>) - Method in interface spoon.reflect.code.CtCase
-
Adds case expression.
- addCatcher(CtCatch) - Method in interface spoon.reflect.code.CtTry
-
Adds a catch block.
- addCatcher(CtCatch) - Method in class spoon.support.reflect.code.CtTryImpl
- addCatcherAt(int, CtCatch) - Method in interface spoon.reflect.code.CtTry
-
Adds a catch block at the specified position in the
try
statement. - addCatcherAt(int, CtCatch) - Method in class spoon.support.reflect.code.CtTryImpl
- addClassImport(CtTypeReference<?>) - Method in class spoon.reflect.visitor.ImportScannerImpl
-
Adds a type to the classImports.
- addClone(Collection<T>, T) - Method in class spoon.support.visitor.equals.CloneHelper
-
clones an element and adds it's clone as value into targetCollection
- addClone(Map<String, T>, String, T) - Method in class spoon.support.visitor.equals.CloneHelper
-
clones a value and adds it's clone as value into targetMap under key
- addComment(CtComment) - Method in interface spoon.reflect.declaration.CtElement
-
Add a comment to the current element
element.addComment(element.getFactory().Code().createComment("comment", CtComment.CommentType.INLINE)
- addComment(CtComment) - Method in class spoon.support.reflect.declaration.CtElementImpl
- addCompilationUnitFilter(CompilationUnitFilter) - Method in interface spoon.SpoonModelBuilder
-
Adds
filter
. - addCompilationUnitFilter(CompilationUnitFilter) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- addConstructor(CtConstructor<?>) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addConstructor(CtConstructor<?>) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addConstructor(CtConstructor<T>) - Method in interface spoon.reflect.declaration.CtClass
-
Adds a constructor to this class.
- addConstructor(CtConstructor<T>) - Method in class spoon.support.reflect.declaration.CtClassImpl
- addConsumedAnnotationType(Class<? extends A>) - Method in class spoon.processing.AbstractAnnotationProcessor
-
Adds a consumed annotation type (to be used in subclasses constructors).
- addDeclaredType(CtType<?>) - Method in interface spoon.reflect.declaration.CtCompilationUnit
-
Add a type to the list of declared types.
- addDeclaredType(CtType<?>) - Method in class spoon.support.reflect.declaration.CtCompilationUnitImpl
- addDeclaredTypeReference(CtTypeReference<?>) - Method in interface spoon.reflect.declaration.CtCompilationUnit
-
Add a type reference to the list of declared types
- addDeclaredTypeReference(CtTypeReference<?>) - Method in class spoon.support.reflect.declaration.CtCompilationUnitImpl
- addDefaultValueEnd(int) - Method in interface spoon.reflect.cu.position.DeclarationSourcePosition
-
returns a new position object enriched a default value declaration (immutability pattern)
- addDefaultValueEnd(int) - Method in class spoon.support.reflect.cu.position.DeclarationSourcePositionImpl
- addDimensionExpression(CtExpression<Integer>) - Method in interface spoon.reflect.code.CtNewArray
-
Adds a dimension expression.
- addDimensionExpression(CtExpression<Integer>) - Method in class spoon.support.reflect.code.CtNewArrayImpl
- addElement(JavadocDescriptionElement) - Method in class spoon.javadoc.internal.JavadocDescription
- addElement(CtExpression<?>) - Method in interface spoon.reflect.code.CtNewArray
-
Adds an element.
- addElement(CtExpression<?>) - Method in class spoon.support.reflect.code.CtNewArrayImpl
- addEnumValue(CtEnumValue<?>) - Method in interface spoon.reflect.declaration.CtEnum
-
Adds an enum value.
- addEnumValue(CtEnumValue<?>) - Method in class spoon.support.reflect.declaration.CtEnumImpl
- addEnumValue(CtEnumValue<?>) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addEnumValue(CtEnumValue<?>) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addExecutable(CtExecutable<?>) - Method in class spoon.reflect.visitor.filter.ExecutableReferenceFilter
-
Add next
CtExecutable
whoseCtExecutableReference
s has to be matched - addExportedPackage(CtPackageExport) - Method in interface spoon.reflect.declaration.CtModule
- addExportedPackage(CtPackageExport) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- addField(int, CtField<F>) - Method in interface spoon.reflect.declaration.CtType
-
add a field at a given position.
- addField(int, CtField<F>) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addField(int, CtField<F>) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- addField(CtField<?>) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- addField(CtField<?>) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addField(CtField<?>) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addField(CtField<F>) - Method in interface spoon.reflect.declaration.CtType
-
add a field at the end of the field list.
- addField(CtField<F>) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addField(CtField<F>) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- addFieldAtTop(CtField<F>) - Method in interface spoon.reflect.declaration.CtType
-
Adds a field at the top of the type (before static block).
- addFieldAtTop(CtField<F>) - Method in interface spoon.reflect.declaration.CtTypeParameter
- addFieldAtTop(CtField<F>) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addFieldAtTop(CtField<F>) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- addFieldImport(CtFieldReference) - Method in class spoon.reflect.visitor.ImportScannerImpl
- addFile(SpoonFile) - Method in interface spoon.compiler.SpoonFolder
-
Adds a file in this folder
- addFile(SpoonFile) - Method in class spoon.support.compiler.FileSystemFolder
- addFile(SpoonFile) - Method in class spoon.support.compiler.VirtualFolder
- addFile(SpoonFile) - Method in class spoon.support.compiler.ZipFolder
- addFirst(CtPathElement) - Method in class spoon.reflect.path.impl.CtPathImpl
- addFolder(SpoonFolder) - Method in interface spoon.compiler.SpoonFolder
-
Adds a sub folder in this folder
- addFolder(SpoonFolder) - Method in class spoon.support.compiler.FileSystemFolder
- addFolder(SpoonFolder) - Method in class spoon.support.compiler.VirtualFolder
- addFolder(SpoonFolder) - Method in class spoon.support.compiler.ZipFolder
- addForInit(CtStatement) - Method in interface spoon.reflect.code.CtFor
-
Adds an init statement.
- addForInit(CtStatement) - Method in class spoon.support.reflect.code.CtForImpl
- addFormalCtTypeParameter(CtTypeParameter) - Method in interface spoon.reflect.declaration.CtFormalTypeDeclarer
-
Add a type parameter to this generic element.
- addFormalCtTypeParameter(CtTypeParameter) - Method in class spoon.support.reflect.declaration.CtConstructorImpl
- addFormalCtTypeParameter(CtTypeParameter) - Method in class spoon.support.reflect.declaration.CtMethodImpl
- addFormalCtTypeParameter(CtTypeParameter) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addFormalCtTypeParameterAt(int, CtTypeParameter) - Method in interface spoon.reflect.declaration.CtFormalTypeDeclarer
-
Add a type parameter at a specific position.
- addFormalCtTypeParameterAt(int, CtTypeParameter) - Method in class spoon.support.reflect.declaration.CtConstructorImpl
- addFormalCtTypeParameterAt(int, CtTypeParameter) - Method in class spoon.support.reflect.declaration.CtMethodImpl
- addFormalCtTypeParameterAt(int, CtTypeParameter) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addFormalType(CtTypeParameter) - Method in class spoon.support.visitor.java.internal.AnnotationRuntimeBuilderContext
- addFormalType(CtTypeParameter) - Method in class spoon.support.visitor.java.internal.ExecutableRuntimeBuilderContext
- addFormalType(CtTypeParameter) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addFormalType(CtTypeParameter) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- addFormalType(CtTypeParameter) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addForUpdate(CtStatement) - Method in interface spoon.reflect.code.CtFor
-
Adds an update statement.
- addForUpdate(CtStatement) - Method in class spoon.support.reflect.code.CtForImpl
- addGeneratedBy(boolean) - Method in class spoon.template.AbstractTemplate
- addImplementationType(CtTypeReference) - Method in interface spoon.reflect.declaration.CtProvidedService
- addImplementationType(CtTypeReference) - Method in class spoon.support.reflect.declaration.CtProvidedServiceImpl
- addImplementingInterface(CtTypeInformation) - Method in class spoon.reflect.visitor.filter.LambdaFilter
-
Allows to search for lambdas implemented by different interfaces.
- addInput(Iterable<?>) - Method in class spoon.reflect.visitor.chain.CtQueryImpl
- addInput(Object...) - Method in class spoon.reflect.visitor.chain.CtQueryImpl
-
adds list of elements which will be used as input of the query too
- addInputResource(String) - Method in class spoon.Launcher
- addInputResource(String) - Method in interface spoon.SpoonAPI
-
Adds an input resource to be processed by Spoon (either a file or a folder).
- addInputResource(SpoonResource) - Method in class spoon.Launcher
-
adds a resource to be parsed to build the spoon model
- addInputSource(File) - Method in interface spoon.SpoonModelBuilder
-
Adds a file/directory to be built.
- addInputSource(File) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- addInputSource(SpoonResource) - Method in interface spoon.SpoonModelBuilder
-
Adds a file/directory (as a
SpoonResource
) to be built. - addInputSource(SpoonResource) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- addInputSources(List<SpoonResource>) - Method in interface spoon.SpoonModelBuilder
-
Adds a list of files/directories (as a
SpoonResource
to be built. - addInputSources(List<SpoonResource>) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- addLast(CtPathElement) - Method in class spoon.reflect.path.impl.CtPathImpl
- addMethod(CtMethod<?>) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- addMethod(CtMethod<?>) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addMethod(CtMethod<?>) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addMethod(CtMethod<M>) - Method in interface spoon.reflect.declaration.CtAnnotationType
-
Adds a method to this type.
- addMethod(CtMethod<M>) - Method in interface spoon.reflect.declaration.CtType
-
Adds a method to this type.
- addMethod(CtMethod<M>) - Method in interface spoon.reflect.declaration.CtTypeParameter
- addMethod(CtMethod<M>) - Method in class spoon.support.reflect.declaration.CtAnnotationTypeImpl
- addMethod(CtMethod<M>) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addMethod(CtMethod<M>) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- addMethodImport(CtExecutableReference) - Method in class spoon.reflect.visitor.ImportScannerImpl
- addModifier(ModifierKind) - Method in interface spoon.reflect.declaration.CtModifiable
-
add a modifier
- addModifier(ModifierKind) - Method in class spoon.support.reflect.code.CtCatchVariableImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.code.CtLocalVariableImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.CtModifierHandler
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtAnonymousExecutableImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtConstructorImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtFieldImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtMethodImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtParameterImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtRecordImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addModifier(ModifierKind) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- addModule(CtModule) - Method in class spoon.reflect.factory.ModuleFactory.CtUnnamedModule
- addModuleDirective(CtModuleDirective) - Method in interface spoon.reflect.declaration.CtModule
- addModuleDirective(CtModuleDirective) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- addModuleDirectiveAt(int, CtModuleDirective) - Method in interface spoon.reflect.declaration.CtModule
- addModuleDirectiveAt(int, CtModuleDirective) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- addMultiType(CtTypeReference<?>) - Method in interface spoon.reflect.declaration.CtMultiTypedElement
-
Adds a type for the element.
- addMultiType(CtTypeReference<?>) - Method in class spoon.support.reflect.code.CtCatchVariableImpl
- addNamedElement(CtNamedElement) - Method in interface spoon.reflect.visitor.LexicalScope
-
adds an element to the scope
- addNestedType(CtType<N>) - Method in interface spoon.reflect.declaration.CtType
-
Add a nested type.
- addNestedType(CtType<N>) - Method in interface spoon.reflect.declaration.CtTypeParameter
- addNestedType(CtType<N>) - Method in class spoon.support.reflect.declaration.CtInterfaceImpl
- addNestedType(CtType<N>) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addNestedType(CtType<N>) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- addOpenedPackage(CtPackageExport) - Method in interface spoon.reflect.declaration.CtModule
- addOpenedPackage(CtPackageExport) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- addPackage(CtPackage) - Method in interface spoon.reflect.declaration.CtPackage
-
add a subpackage
- addPackage(CtPackage) - Method in class spoon.support.reflect.declaration.CtPackageImpl
- addPackage(CtPackage) - Method in class spoon.support.visitor.java.internal.AnnotationRuntimeBuilderContext
- addPackage(CtPackage) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addPackage(CtPackage) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- addPackage(CtPackage) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addParameter(CtParameter) - Method in class spoon.support.reflect.declaration.CtAnonymousExecutableImpl
- addParameter(CtParameter) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addParameter(CtParameter) - Method in class spoon.support.visitor.java.internal.ExecutableRuntimeBuilderContext
- addParameter(CtParameter) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addParameter(CtParameter<?>) - Method in interface spoon.reflect.declaration.CtAnonymousExecutable
- addParameter(CtParameter<?>) - Method in interface spoon.reflect.declaration.CtExecutable
-
Add a parameter for this executable
- addParameter(CtParameter<?>) - Method in class spoon.support.reflect.code.CtLambdaImpl
- addParameter(CtParameter<?>) - Method in class spoon.support.reflect.declaration.CtExecutableImpl
- addParameterAt(int, CtParameter) - Method in class spoon.support.reflect.declaration.CtAnonymousExecutableImpl
- addParameterAt(int, CtParameter<?>) - Method in interface spoon.reflect.declaration.CtAnonymousExecutable
- addParameterAt(int, CtParameter<?>) - Method in interface spoon.reflect.declaration.CtExecutable
-
Add a parameter at a specific position in the executable.
- addParameterAt(int, CtParameter<?>) - Method in class spoon.support.reflect.code.CtLambdaImpl
- addParameterAt(int, CtParameter<?>) - Method in class spoon.support.reflect.declaration.CtExecutableImpl
- addPermittedType(CtTypeReference<?>) - Method in interface spoon.reflect.declaration.CtEnum
- addPermittedType(CtTypeReference<?>) - Method in interface spoon.reflect.declaration.CtRecord
- addPermittedType(CtTypeReference<?>) - Method in interface spoon.reflect.declaration.CtSealable
-
Adds a permitted type to this type.
- addPermittedType(CtTypeReference<?>) - Method in class spoon.support.reflect.declaration.CtClassImpl
- addPermittedType(CtTypeReference<?>) - Method in class spoon.support.reflect.declaration.CtEnumImpl
- addPermittedType(CtTypeReference<?>) - Method in class spoon.support.reflect.declaration.CtInterfaceImpl
- addPermittedType(CtTypeReference<?>) - Method in class spoon.support.reflect.declaration.CtRecordImpl
- addProcessedAnnotationType(Class<? extends A>) - Method in class spoon.processing.AbstractAnnotationProcessor
-
Adds a processed annotation type (to be used in subclasses constructors).
- addProcessedElementType(Class<? extends CtElement>) - Method in class spoon.processing.AbstractManualProcessor
-
Invalid method in this context.
- addProcessedElementType(Class<? extends CtElement>) - Method in class spoon.processing.AbstractProcessor
-
Adds a processed element type.
- addProcessor(Class<? extends Processor<?>>) - Method in interface spoon.processing.ProcessingManager
-
Adds a processor by instantiating its type (a class that must define an empty constructor).
- addProcessor(Class<? extends Processor<?>>) - Method in class spoon.support.QueueProcessingManager
- addProcessor(Class<? extends Processor<?>>) - Method in class spoon.support.RuntimeProcessingManager
- addProcessor(String) - Method in class spoon.Launcher
- addProcessor(String) - Method in interface spoon.processing.ProcessingManager
-
Adds a processor by instantiating its type (a class that must define an empty constructor and implement
Processor
). - addProcessor(String) - Method in interface spoon.SpoonAPI
-
Adds a processor (fully qualified name).
- addProcessor(String) - Method in class spoon.support.QueueProcessingManager
- addProcessor(String) - Method in class spoon.support.RuntimeProcessingManager
- addProcessor(Processor<?>) - Method in interface spoon.processing.ProcessingManager
-
Adds a processor.
- addProcessor(Processor<?>) - Method in class spoon.support.QueueProcessingManager
- addProcessor(Processor<?>) - Method in class spoon.support.RuntimeProcessingManager
- addProcessor(Processor<T>) - Method in class spoon.Launcher
- addProcessor(Processor<T>) - Method in interface spoon.SpoonAPI
-
Adds an instance of a processor.
- addProvidedService(CtProvidedService) - Method in interface spoon.reflect.declaration.CtModule
- addProvidedService(CtProvidedService) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- addRecordComponent(CtRecordComponent) - Method in interface spoon.reflect.declaration.CtRecord
- addRecordComponent(CtRecordComponent) - Method in class spoon.support.reflect.declaration.CtRecordImpl
- addRecordComponent(CtRecordComponent) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addRecordComponent(CtRecordComponent) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addRequiredModule(CtModuleRequirement) - Method in interface spoon.reflect.declaration.CtModule
- addRequiredModule(CtModuleRequirement) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- addResource(CtResource<?>) - Method in interface spoon.reflect.code.CtTryWithResource
-
Adds a resource.
- addResource(CtResource<?>) - Method in class spoon.support.reflect.code.CtTryWithResourceImpl
- addResult(T) - Method in class spoon.pattern.internal.ResultHolder
-
adds a result into this result holder
- addResult(T) - Method in class spoon.pattern.internal.ResultHolder.Multiple
- addResult(T) - Method in class spoon.pattern.internal.ResultHolder.Single
- addStatement(int, CtStatement) - Method in interface spoon.reflect.code.CtStatementList
-
Inserts the given statement at a specific position in the list of statements Shifts the statement currently at that position (if any) and any subsequent statements to the right (adds one to their indices).
- addStatement(int, CtStatement) - Method in class spoon.support.reflect.code.CtBlockImpl
- addStatement(int, CtStatement) - Method in class spoon.support.reflect.code.CtCaseImpl
- addStatement(int, CtStatement) - Method in class spoon.support.reflect.code.CtStatementListImpl
- addStatement(CtStatement) - Method in interface spoon.reflect.code.CtStatementList
-
Adds a statement at the end of the list.
- addStatement(CtStatement) - Method in class spoon.support.reflect.code.CtBlockImpl
- addStatement(CtStatement) - Method in class spoon.support.reflect.code.CtCaseImpl
- addStatement(CtStatement) - Method in class spoon.support.reflect.code.CtStatementListImpl
- addSuperInterface(CtTypeReference<S>) - Method in interface spoon.reflect.declaration.CtType
- addSuperInterface(CtTypeReference<S>) - Method in interface spoon.reflect.declaration.CtTypeParameter
- addSuperInterface(CtTypeReference<S>) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addSuperInterface(CtTypeReference<S>) - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- addSuperType(CtTypeInformation) - Method in class spoon.support.visitor.SubInheritanceHierarchyResolver
-
Add another super type to this mapping function.
- addTag(int, CtJavaDocTag) - Method in interface spoon.reflect.code.CtJavaDoc
-
Add a new tag at the index position
- addTag(int, CtJavaDocTag) - Method in class spoon.support.reflect.code.CtJavaDocImpl
- addTag(CtJavaDocTag) - Method in interface spoon.reflect.code.CtJavaDoc
-
Add a new tag at the end of the list
- addTag(CtJavaDocTag) - Method in class spoon.support.reflect.code.CtJavaDocImpl
- addTargetExport(CtModuleReference) - Method in interface spoon.reflect.declaration.CtPackageExport
- addTargetExport(CtModuleReference) - Method in class spoon.support.reflect.declaration.CtPackageExportImpl
- addTemplateResource(SpoonResource) - Method in class spoon.Launcher
- addTemplateSource(File) - Method in interface spoon.SpoonModelBuilder
-
Adds a file/directory to be used to build templates.
- addTemplateSource(File) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- addTemplateSource(SpoonResource) - Method in interface spoon.SpoonModelBuilder
-
Adds a file/directory (as a
SpoonResource
) to be used to build templates. - addTemplateSource(SpoonResource) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- addTemplateSources(List<SpoonResource>) - Method in interface spoon.SpoonModelBuilder
-
Adds a list of files/directories (as a CtResource) to be used to build templates.
- addTemplateSources(List<SpoonResource>) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- addThrownType(CtTypeReference) - Method in class spoon.support.reflect.declaration.CtAnonymousExecutableImpl
- addThrownType(CtTypeReference<? extends Throwable>) - Method in interface spoon.reflect.declaration.CtAnonymousExecutable
- addThrownType(CtTypeReference<? extends Throwable>) - Method in interface spoon.reflect.declaration.CtExecutable
-
add a thrown type.
- addThrownType(CtTypeReference<? extends Throwable>) - Method in class spoon.support.reflect.code.CtLambdaImpl
- addThrownType(CtTypeReference<? extends Throwable>) - Method in class spoon.support.reflect.declaration.CtExecutableImpl
- addType(CtType) - Method in class spoon.reflect.factory.CompilationUnitFactory
-
add a new type to be pretty-printed
- addType(CtType<?>) - Method in interface spoon.reflect.declaration.CtPackage
-
Adds a type to this package.
- addType(CtType<?>) - Method in class spoon.support.reflect.declaration.CtPackageImpl
- addType(CtType<?>) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- addType(CtType<?>) - Method in class spoon.support.visitor.java.internal.PackageRuntimeBuilderContext
- addType(CtType<?>) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addType(CtType<?>) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addTypeCast(CtTypeReference<?>) - Method in interface spoon.reflect.code.CtExpression
-
Adds a type cast.
- addTypeCast(CtTypeReference<?>) - Method in interface spoon.reflect.code.CtTypePattern
- addTypeCast(CtTypeReference<?>) - Method in class spoon.support.reflect.code.CtAssignmentImpl
- addTypeCast(CtTypeReference<?>) - Method in class spoon.support.reflect.code.CtExpressionImpl
- addTypeMember(CtTypeMember) - Method in interface spoon.reflect.declaration.CtType
-
Adds a type member at the end of all type member of the type.
- addTypeMember(CtTypeMember) - Method in class spoon.support.reflect.declaration.CtTypeImpl
-
Adds a type member.
- addTypeMemberAt(int, CtTypeMember) - Method in interface spoon.reflect.declaration.CtType
-
Adds a type member at a given position.
- addTypeMemberAt(int, CtTypeMember) - Method in class spoon.support.reflect.declaration.CtRecordImpl
- addTypeMemberAt(int, CtTypeMember) - Method in class spoon.support.reflect.declaration.CtTypeImpl
- addTypeReference(CtRole, CtTypeReference<?>) - Method in class spoon.support.visitor.java.internal.PackageRuntimeBuilderContext
- addTypeReference(CtRole, CtTypeReference<?>) - Method in class spoon.support.visitor.java.internal.AnnotationRuntimeBuilderContext
- addTypeReference(CtRole, CtTypeReference<?>) - Method in class spoon.support.visitor.java.internal.ExecutableRuntimeBuilderContext
- addTypeReference(CtRole, CtTypeReference<?>) - Method in class spoon.support.visitor.java.internal.RecordComponentRuntimeBuilderContext
- addTypeReference(CtRole, CtTypeReference<?>) - Method in interface spoon.support.visitor.java.internal.RuntimeBuilderContext
- addTypeReference(CtRole, CtTypeReference<?>) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- addTypeReference(CtRole, CtTypeReference<?>) - Method in class spoon.support.visitor.java.internal.TypeRuntimeBuilderContext
- addTypeReference(CtRole, CtTypeReference<?>) - Method in class spoon.support.visitor.java.internal.VariableRuntimeBuilderContext
- addUsedService(CtUsedService) - Method in interface spoon.reflect.declaration.CtModule
- addUsedService(CtUsedService) - Method in class spoon.support.reflect.declaration.CtModuleImpl
- addValue(String, Object) - Method in interface spoon.reflect.declaration.CtAnnotation
-
Adds a new key-value pair for this annotation
- addValue(String, Object) - Method in class spoon.support.reflect.declaration.CtAnnotationImpl
- addValue(String, CtFieldAccess<?>) - Method in interface spoon.reflect.declaration.CtAnnotation
-
Adds a new key-field access pair for this annotation.
- addValue(String, CtFieldAccess<?>) - Method in class spoon.support.reflect.declaration.CtAnnotationImpl
- addValue(String, CtLiteral<?>) - Method in interface spoon.reflect.declaration.CtAnnotation
-
Adds a new key-literal pair for this annotation.
- addValue(String, CtLiteral<?>) - Method in class spoon.support.reflect.declaration.CtAnnotationImpl
- addValue(String, CtNewArray<? extends CtExpression>) - Method in interface spoon.reflect.declaration.CtAnnotation
-
Adds a new key-array pair for this annotation.
- addValue(String, CtNewArray<? extends CtExpression>) - Method in class spoon.support.reflect.declaration.CtAnnotationImpl
- addValue(String, CtAnnotation<?>) - Method in interface spoon.reflect.declaration.CtAnnotation
-
Adds a new key-annotation pair for this annotation.
- addValue(String, CtAnnotation<?>) - Method in class spoon.support.reflect.declaration.CtAnnotationImpl
- addValueAs(Object, Function<Object, Object>) - Method in class spoon.pattern.internal.parameter.AbstractParameterInfo
-
takes existing item value from the `container`, sends it as parameter into `merger` and get's new to be stored value stores that value into new `container` and returns it
- addValueAs(Object, Function<Object, Object>) - Method in class spoon.pattern.internal.parameter.ComputedParameterInfo
- addValueAs(Object, Function<Object, Object>) - Method in class spoon.pattern.internal.parameter.ListParameterInfo
- addValueAs(Object, Function<Object, Object>) - Method in class spoon.pattern.internal.parameter.MapParameterInfo
- addValueAs(Object, Function<Object, Object>) - Method in class spoon.pattern.internal.parameter.SetParameterInfo
- addValueAs(ImmutableMap, Object) - Method in class spoon.pattern.internal.parameter.AbstractParameterInfo
- addValueAs(ImmutableMap, Object) - Method in interface spoon.pattern.internal.parameter.ParameterInfo
-
Matches `value` into `parameters` under the name/structure defined by this ParameterInfo.
- addValueToContainer(Object, Function<Object, Object>) - Method in class spoon.pattern.internal.parameter.AbstractParameterInfo
- adjustEndPosition(CtElement) - Method in class spoon.reflect.visitor.PrinterHelper
-
writes as many newlines as needed for the current line to match the end line of the passed element
- adjustStartPosition(CtElement) - Method in class spoon.reflect.visitor.PrinterHelper
-
writes as many newlines as needed to align the line number again between the element position and the current line number
- advancedOptions(AdvancedOptions<?>) - Method in interface spoon.compiler.builder.JDTBuilder
-
Advanced options for the compiler.
- advancedOptions(AdvancedOptions<?>) - Method in class spoon.compiler.builder.JDTBuilderImpl
- AdvancedOptions<T extends AdvancedOptions<T>> - Class in spoon.compiler.builder
- AdvancedOptions() - Constructor for class spoon.compiler.builder.AdvancedOptions
- AFTER - Enum constant in enum spoon.reflect.visitor.printer.CommentOffset
- ALL - Enum constant in enum spoon.reflect.visitor.filter.AllTypeMembersFunction.Mode
-
Returns all type members - including private
- ALL - Enum constant in enum spoon.reflect.visitor.filter.SiblingsFunction.Mode
- ALL_DIR_FILTER - Static variable in class spoon.Launcher
- ALL_SOURCE - Enum constant in enum spoon.MavenLauncher.SOURCE_TYPE
- ALL_STATIC_MEMBERS - Enum constant in enum spoon.reflect.declaration.CtImportKind
- ALL_TYPES - Enum constant in enum spoon.reflect.declaration.CtImportKind
- AllMethodsSameSignatureFunction - Class in spoon.reflect.visitor.filter
-
Returns all methods/lambdas with same signature in related inheritance hierarchies.
- AllMethodsSameSignatureFunction() - Constructor for class spoon.reflect.visitor.filter.AllMethodsSameSignatureFunction
- AllTypeMembersFunction - Class in spoon.reflect.visitor.filter
-
Expects
CtType
as input and produces allCtTypeMember
s declared in input class or any super class or super interface. - AllTypeMembersFunction() - Constructor for class spoon.reflect.visitor.filter.AllTypeMembersFunction
-
returns all type members
- AllTypeMembersFunction(Class<?>) - Constructor for class spoon.reflect.visitor.filter.AllTypeMembersFunction
-
returns all type members which are instance of `memberClass`.
Example:
CtField allFields = ctType.map(new AllTypeMembersFunction(CtField.class)).list();
- AllTypeMembersFunction.Mode - Enum in spoon.reflect.visitor.filter
- ALSO_PRINT_DIAMOND_OPERATOR - Enum constant in enum spoon.reflect.visitor.ElementPrinterHelper.PrintTypeArguments
-
Print explicit type arguments, but also print a diamond operator if implicit type arguments were used.
- AND - Enum constant in enum spoon.reflect.code.BinaryOperatorKind
-
Logical and.
- ANNONYMOUS_EXECUTABLE - Enum constant in enum spoon.reflect.path.CtRole
- annotate(CtElement, Class<A>) - Method in class spoon.reflect.factory.AnnotationFactory
-
Adds an annotation to an element.
- annotate(CtElement, Class<A>, String, Object) - Method in class spoon.reflect.factory.AnnotationFactory
-
Creates/updates an element's annotation value.
- annotate(CtElement, CtTypeReference<A>) - Method in class spoon.reflect.factory.AnnotationFactory
-
Adds an annotation to an element.
- annotate(CtElement, CtTypeReference<A>, String, Object) - Method in class spoon.reflect.factory.AnnotationFactory
-
Creates/updates an element's annotation value.
- Annotation() - Method in interface spoon.reflect.factory.Factory
-
Access to
AnnotationFactory
subfactory - Annotation() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CtAnnotationType
sub-factory. - ANNOTATION - Enum constant in enum spoon.reflect.path.CtRole
- ANNOTATION_TYPE - Enum constant in enum spoon.reflect.declaration.CtAnnotatedElementType
-
Annotation type declaration
- ANNOTATION_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- AnnotationFactory - Class in spoon.reflect.factory
-
The
CtAnnotationType
sub-factory. - AnnotationFactory(Factory) - Constructor for class spoon.reflect.factory.AnnotationFactory
-
Creates an annotation sub-factory.
- AnnotationFilter<E extends CtElement> - Class in spoon.reflect.visitor.filter
-
This filter matches all the elements annotated with a given annotation type.
- AnnotationFilter(Class<? extends Annotation>) - Constructor for class spoon.reflect.visitor.filter.AnnotationFilter
-
Creates the filter.
- AnnotationFilter(Class<E>, Class<? extends Annotation>) - Constructor for class spoon.reflect.visitor.filter.AnnotationFilter
-
Creates a new annotation filter.
- annotationProcessingOptions(AnnotationProcessingOptions<?>) - Method in interface spoon.compiler.builder.JDTBuilder
-
Annotation processing options for the compiler.
- annotationProcessingOptions(AnnotationProcessingOptions<?>) - Method in class spoon.compiler.builder.JDTBuilderImpl
- AnnotationProcessingOptions<T extends AnnotationProcessingOptions<T>> - Class in spoon.compiler.builder
- AnnotationProcessingOptions() - Constructor for class spoon.compiler.builder.AnnotationProcessingOptions
- AnnotationProcessor<A extends Annotation,E extends CtElement> - Interface in spoon.processing
-
This interface defines an annotation processor.
- AnnotationRuntimeBuilderContext - Class in spoon.support.visitor.java.internal
- AnnotationRuntimeBuilderContext(CtAnnotation<Annotation>) - Constructor for class spoon.support.visitor.java.internal.AnnotationRuntimeBuilderContext
- ANNOTATIONS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- ANONYMOUS_EXECUTABLES_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- APP_SOURCE - Enum constant in enum spoon.MavenLauncher.SOURCE_TYPE
- APPEND - Enum constant in enum spoon.pattern.ConflictResolutionMode
-
Add new
RootNode
after existing nodes - apply(CtCatchVariable<?>, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.CatchVariableScopeFunction
- apply(CtLocalVariable<?>, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.LocalVariableScopeFunction
- apply(CtElement, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.CtScannerFunction
- apply(CtElement, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.FieldReferenceFunction
- apply(CtElement, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.LocalVariableReferenceFunction
- apply(CtElement, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.ParentFunction
- apply(CtElement, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.PotentialVariableDeclarationFunction
- apply(CtElement, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.SiblingsFunction
- apply(CtElement, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.VariableReferenceFunction
- apply(CtExecutable<?>, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.AllMethodsSameSignatureFunction
- apply(CtField<?>, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.FieldScopeFunction
- apply(CtMethod<?>, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.OverriddenMethodQuery
- apply(CtParameter<?>, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.ParameterScopeFunction
- apply(CtType<?>) - Method in class spoon.template.BlockTemplate
- apply(CtType<?>) - Method in class spoon.template.ExpressionTemplate
- apply(CtType<?>) - Method in class spoon.template.ExtensionTemplate
- apply(CtType<?>) - Method in class spoon.template.StatementTemplate
- apply(CtType<?>) - Method in interface spoon.template.Template
-
Returns the code which results from applying the template.
- apply(CtTypeInformation, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.AllTypeMembersFunction
- apply(CtTypeInformation, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.SubInheritanceHierarchyFunction
- apply(CtTypeInformation, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.SuperInheritanceHierarchyFunction
- apply(CtVariable<?>, CtConsumer<Object>) - Method in class spoon.reflect.visitor.filter.VariableScopeFunction
- apply(T) - Method in interface spoon.reflect.visitor.chain.CtFunction
-
Implement this method to transform the input typed by T into an object of type R
- apply(T, CtConsumer<Object>) - Method in interface spoon.reflect.visitor.chain.CtConsumableFunction
-
Evaluates the function on the given input.
- applyGeneratedBy(CtElement, String) - Method in class spoon.pattern.internal.DefaultGenerator
-
Adds a Generated by comment to the javadoc of generatedElement
- applyPreProcessors(CtElement) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
Warning, this may change the state of the object
- ARGUMENT - Enum constant in enum spoon.reflect.path.CtRole
- ARGUMENT_END - Static variable in class spoon.reflect.path.impl.AbstractPathElement
- ARGUMENT_NAME_SEPARATOR - Static variable in class spoon.reflect.path.impl.AbstractPathElement
- ARGUMENT_START - Static variable in class spoon.reflect.path.impl.AbstractPathElement
- ARGUMENT_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- ARROW - Enum constant in enum spoon.reflect.code.CaseKind
- asCollection(T) - Method in interface spoon.reflect.meta.RoleHandler
- asCtIntersectionTypeReference() - Method in interface spoon.reflect.reference.CtTypeReference
-
Casts the type reference in
CtIntersectionTypeReference
. - asCtIntersectionTypeReference() - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
- asIterable() - Method in interface spoon.reflect.declaration.CtElement
-
Returns an Iterable instance of this CtElement, allowing for dfs traversal of its descendants.
- asIterable() - Method in class spoon.support.reflect.declaration.CtElementImpl
- asJavaDoc() - Method in interface spoon.reflect.code.CtComment
-
Utility method to for casting the object, throws an exception if not of the correct type
- asJavaDoc() - Method in class spoon.support.reflect.code.CtCommentImpl
- asList(T) - Method in interface spoon.reflect.meta.RoleHandler
- asMap() - Method in interface spoon.support.util.ImmutableMap
- asMap() - Method in class spoon.support.util.ImmutableMapImpl
- asMap(T) - Method in interface spoon.reflect.meta.RoleHandler
- Assert - Class in spoon.testing
-
Entry point for assertion methods for different data types.
- ASSERT - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- assertCtElementEquals(CtElement, CtElement) - Static method in class spoon.testing.utils.Check
-
if ct1 is not equals to ct2, tells the exact difference
- assertExists(T) - Static method in class spoon.testing.utils.Check
- assertIsSame(A, E) - Static method in class spoon.testing.utils.Check
- assertNotNull(String, T) - Static method in class spoon.testing.utils.Check
-
throws AssertionError if "reference" is null
- assertNotNull(T) - Static method in class spoon.testing.utils.Check
- assertThat(File) - Static method in class spoon.testing.Assert
-
Create a new instance of
.FileAssert
- assertThat(String) - Static method in class spoon.testing.Assert
-
Create a new instance of
.FileAssert
- assertThat(CtElement) - Static method in class spoon.testing.Assert
-
Create a new instance of
.CtElementAssert
- assertThat(CtPackage) - Static method in class spoon.testing.Assert
-
Create a new instance of
.CtPackageAssert
- asSet(T) - Method in interface spoon.reflect.meta.RoleHandler
- ASSIGNED - Enum constant in enum spoon.reflect.path.CtRole
- ASSIGNMENT - Enum constant in enum spoon.reflect.path.CtRole
- ASTPair - Class in spoon.support.compiler.jdt
- ASTPair(CtElement, ASTNode) - Constructor for class spoon.support.compiler.jdt.ASTPair
- AstParentConsistencyChecker - Class in spoon.reflect.visitor
- AstParentConsistencyChecker() - Constructor for class spoon.reflect.visitor.AstParentConsistencyChecker
- attachTo(Environment) - Method in class spoon.support.modelobs.ChangeCollector
- AUTHOR - Enum constant in enum spoon.reflect.code.CtJavaDocTag.TagType
- AUTOIMPORT - Enum constant in enum spoon.compiler.Environment.PRETTY_PRINTING_MODE
-
autoimport mode, adds as many imports as possible
- autoImports(boolean) - Method in class spoon.FluentLauncher
-
Tell to the Java printer to automatically generate imports and use simple names instead of fully-qualified name.
- autoWriteTabs() - Method in class spoon.reflect.visitor.PrinterHelper
B
- BEFORE - Enum constant in enum spoon.reflect.visitor.printer.CommentOffset
- binaries(File) - Method in class spoon.compiler.builder.ClasspathOptions
- binaries(String) - Method in class spoon.compiler.builder.ClasspathOptions
- BINARY - Enum constant in enum spoon.reflect.code.LiteralBase
- BinaryOperatorKind - Enum in spoon.reflect.code
-
This enumeration defines all the kinds of binary operators.
- biScan(CtElement, CtElement) - Method in class spoon.reflect.visitor.CtAbstractBiScanner
-
This method is called to compare `element` and `other` when traversing two trees in parallel.
- biScan(CtElement, CtElement) - Method in class spoon.reflect.visitor.CtBiScannerDefault
- biScan(CtElement, CtElement) - Method in class spoon.support.visitor.equals.EqualsVisitor
- biScan(CtRole, Collection<? extends CtElement>, Collection<? extends CtElement>) - Method in class spoon.reflect.visitor.CtBiScannerDefault
- biScan(CtRole, Collection<? extends CtElement>, Collection<? extends CtElement>) - Method in class spoon.support.visitor.equals.EqualsVisitor
- biScan(CtRole, CtElement, CtElement) - Method in class spoon.reflect.visitor.CtAbstractBiScanner
-
This method is called to compare `element` and `other` according to the role when traversing two trees in parallel.
- biScan(CtRole, CtElement, CtElement) - Method in class spoon.reflect.visitor.CtBiScannerDefault
- biScan(CtRole, CtElement, CtElement) - Method in class spoon.support.visitor.equals.EqualsVisitor
- BITAND - Enum constant in enum spoon.reflect.code.BinaryOperatorKind
-
Bit to bit and.
- BITOR - Enum constant in enum spoon.reflect.code.BinaryOperatorKind
-
Bit to bit or.
- BITXOR - Enum constant in enum spoon.reflect.code.BinaryOperatorKind
-
Bit to bit xor.
- block() - Method in class spoon.template.BlockTemplate
-
This method must be implemented to define the template block.
- BLOCK - Enum constant in enum spoon.reflect.code.CtComment.CommentType
-
Block comment (/* *\/)
- BLOCK_COMMENT_END - Static variable in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
The end of a block/JavaDoc comment
- BLOCK_COMMENT_START - Static variable in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
The beginning of a block comment
- BLOCK_STATEMENTS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- BlockTemplate - Class in spoon.template
-
This class represents a template parameter that defines a void block statement directly expressed in Java (no returns).
- BlockTemplate() - Constructor for class spoon.template.BlockTemplate
-
Creates a new block template parameter.
- BODY - Enum constant in enum spoon.reflect.path.CtRole
- BodyHolderSourcePosition - Interface in spoon.reflect.cu.position
-
This interface represents the position of a Method or Type declaration in a source file.
- BodyHolderSourcePositionImpl - Class in spoon.support.reflect.cu.position
-
This class represents the position of a Java program element in a source file.
- BodyHolderSourcePositionImpl(CompilationUnit, int, int, int, int, int, int, int, int, int[]) - Constructor for class spoon.support.reflect.cu.position.BodyHolderSourcePositionImpl
- BOOLEAN - Variable in class spoon.reflect.factory.TypeFactory
- BOOLEAN_PRIMITIVE - Variable in class spoon.reflect.factory.TypeFactory
- booleanPrimitiveType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the boolean primitive type.
- booleanType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the boolean type.
- bootclasspath(String) - Method in class spoon.compiler.builder.ClasspathOptions
- bootclasspath(String...) - Method in class spoon.compiler.builder.ClasspathOptions
- BOTTOM_FILE - Enum constant in enum spoon.reflect.visitor.printer.CommentOffset
- BOUND - Enum constant in enum spoon.reflect.path.CtRole
- BOUNDING_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- box() - Method in interface spoon.reflect.reference.CtTypeReference
-
Returns the corresponding non-primitive type for a primitive type (the same type otherwise).
- box() - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
- BREAK - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- build() - Method in interface spoon.compiler.builder.JDTBuilder
-
Builds arguments.
- build() - Method in class spoon.compiler.builder.JDTBuilderImpl
- build() - Method in class spoon.compiler.builder.Options
- build() - Method in class spoon.pattern.PatternBuilder
-
Builds a Pattern and returns it
- build() - Method in class spoon.reflect.path.CtPathBuilder
-
Build the CtPath
- build() - Method in interface spoon.SpoonModelBuilder
-
Builds the program's model with this compiler's factory and stores the result into this factory.
- build() - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- build() - Method in class spoon.support.compiler.jdt.JDTCommentBuilder
-
Start the build process
- build() - Method in class spoon.support.compiler.jdt.JDTSnippetCompiler
- build(File...) - Static method in class spoon.testing.utils.ModelUtils
-
Builds the Spoon mode of the `filesToBuild` given as parameter
- build(Class<?>...) - Static method in class spoon.testing.utils.ModelUtils
-
Utility method for testing: creates the model of the given `classesToBuild` from src/test/java and returns the factory
- build(String, String) - Static method in class spoon.testing.utils.ModelUtils
-
Utility method for testing: creates the model of `packageName` from src/test/java and returns the CtType corresponding to `className`
- build(String, String, Factory) - Static method in class spoon.testing.utils.ModelUtils
-
Utility method for testing: creates the model of `packageName` and the factory from src/test/java and returns the CtType corresponding to `className`
- build(Consumer<Launcher>, Class<?>...) - Static method in class spoon.testing.utils.ModelUtils
-
Utility method for testing: creates the model of the given `classesToBuild` from src/test/java and returns the factory and allows to configure the Launcher first using `config`
- build(JDTBuilder) - Method in interface spoon.SpoonModelBuilder
-
Builds the program's model with this compiler's factory and stores the result into this factory.
- build(JDTBuilder) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- build(JDTBuilder) - Method in class spoon.support.compiler.jdt.JDTSnippetCompiler
- build(CloneBuilder, CtElement, CtElement) - Static method in class spoon.support.visitor.clone.CloneBuilder
- buildClass(Class<T>) - Static method in class spoon.testing.utils.ModelUtils
- buildClass(Class<T>, boolean) - Static method in class spoon.testing.utils.ModelUtils
-
Builds and returns the Spoon model of `` classToBuild
- buildClass(Consumer<Launcher>, Class<T>) - Static method in class spoon.testing.utils.ModelUtils
- buildClassPath(String, MavenLauncher.SOURCE_TYPE, Logger, boolean) - Method in class spoon.support.compiler.SpoonPom
-
Call maven invoker to generate the classpath.
- buildClassPath(String, MavenLauncher.SOURCE_TYPE, Logger, boolean, SpoonPom.MavenOptions) - Method in class spoon.support.compiler.SpoonPom
-
Call maven invoker to generate the classpath.
- buildModel() - Method in class spoon.FluentLauncher
-
Builds the model
- buildModel() - Method in class spoon.Launcher
- buildModel() - Method in interface spoon.SpoonAPI
-
Builds the model
- buildModel(CompilationUnitDeclaration[], Factory) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- buildNoClasspath(Class<?>...) - Static method in class spoon.testing.utils.ModelUtils
-
Utility method for testing: creates the noclasspath model of the given `classesToBuild` from src/test/java and returns the factory
- buildSources(JDTBuilder) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- buildSources(JDTBuilder) - Method in class spoon.support.compiler.jdt.JDTSnippetCompiler
- buildTemplates(JDTBuilder) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- buildUnits(JDTBuilder, SpoonFolder, String[], String) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
-
Build the CompilationUnit found in the source folder
- buildUnitsAndModel(JDTBuilder, SpoonFolder, String[], String) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
-
Get the units from the given source folder and build the Spoon Model.
- byCondition(Class<T>, Predicate<T>) - Method in class spoon.pattern.PatternParameterConfigurator
- byElement(CtElement...) - Method in class spoon.pattern.PatternParameterConfigurator
-
Elements will be substituted by parameter value
- byFieldAccessOnVariable(String) - Method in class spoon.pattern.PatternParameterConfigurator
-
Add parameters for each field reference to variable named `variableName` For example this pattern model class Params { int paramA; int paramB; } void matcher(Params p) { return p.paramA + p.paramB; } called with `byFieldRefOfVariable("p")` will create pattern parameters: `paramA` and `paramB`
- byFilter(Filter<?>) - Method in class spoon.pattern.PatternParameterConfigurator
-
All elements matched by
Filter
will be substituted by parameter value - byInvocation(CtMethod<?>) - Method in class spoon.pattern.PatternParameterConfigurator
-
each invocation of `method` will be replaces by parameter value
- byLocalType(CtType<?>, String) - Method in class spoon.pattern.PatternParameterConfigurator
-
Searches for a type visible in scope `templateType`, whose simple name is equal to `localTypeSimpleName`
- byNamedElement(String) - Method in class spoon.pattern.PatternParameterConfigurator
-
Any named element by it's simple name
- byParameterValues(Map<String, Object>) - Method in class spoon.pattern.PatternParameterConfigurator
-
Creates pattern parameter for each key of parameterValues
Map
. - byReferenceName(String) - Method in class spoon.pattern.PatternParameterConfigurator
-
Any reference identified by it's simple name.
- byRole(CtRole, CtElement...) - Method in class spoon.pattern.PatternParameterConfigurator
-
Attribute defined by `role` of `element` will be substituted by parameter value
- byRole(CtRole, Filter<?>) - Method in class spoon.pattern.PatternParameterConfigurator
-
Attribute defined by `role` of all elements matched by
Filter
will be substituted by parameter value - byString(String) - Method in class spoon.pattern.PatternParameterConfigurator
-
All spoon model string attributes whose value is equal to `stringMarker` are subject for substitution by current parameter
- bySubstring(String) - Method in class spoon.pattern.PatternParameterConfigurator
-
All spoon model string attributes whose value contains whole string or a substring equal to `stringMarker` are subject for substitution by current parameter.
- BYTE - Variable in class spoon.reflect.factory.TypeFactory
- BYTE_PRIMITIVE - Variable in class spoon.reflect.factory.TypeFactory
- byTemplateParameter() - Method in class spoon.pattern.PatternParameterConfigurator
-
Creates pattern parameter for each field of type
TemplateParameter
- byTemplateParameter(Map<String, Object>) - Method in class spoon.pattern.PatternParameterConfigurator
-
Creates pattern parameter for each field of type
TemplateParameter
.
Note: This method is here for compatibility with obsolete legacyTemplate
based concept. - byTemplateParameterReference(CtVariable<?>) - Method in class spoon.pattern.PatternParameterConfigurator
-
variable read/write of `variable` of type
TemplateParameter
- bytePrimitiveType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the byte primitive type.
- ByteSerialization - Class in spoon.support.util
- byteType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the byte type.
- byType(Class<?>) - Method in class spoon.pattern.PatternParameterConfigurator
-
`type` itself and all the references to the `type` are subject for substitution by current parameter
- byType(String) - Method in class spoon.pattern.PatternParameterConfigurator
-
type identified by `typeQualifiedName` itself and all the references (with arbitrary actual type arguments) to that type are subject for substitution by current parameter
- byType(CtTypeReference<?>) - Method in class spoon.pattern.PatternParameterConfigurator
-
type referred by
CtTypeReference
`type` and all the references (with same actual type arguments) to that type are subject for substitution by current parameter - byVariable(String) - Method in class spoon.pattern.PatternParameterConfigurator
-
variable read/write of `variable`
- byVariable(CtVariable<?>) - Method in class spoon.pattern.PatternParameterConfigurator
-
variable read/write of `variable`
- BZIP2 - Enum constant in enum spoon.support.CompressionType
C
- CacheBasedConflictFinder - Class in spoon.reflect.visitor
-
Caches some field and nested type names
- calculate(CtCompilationUnit, List<CtType<?>>) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
- calculate(CtCompilationUnit, List<CtType<?>>) - Method in interface spoon.reflect.visitor.PrettyPrinter
-
Calculates the resulting source file for a list of types.
- calculate(CtCompilationUnit, List<CtType<?>>) - Method in class spoon.support.sniper.SniperJavaPrettyPrinter
- canAccess(CtTypeMember) - Method in interface spoon.reflect.reference.CtTypeReference
- canAccess(CtTypeMember) - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
- canAccess(CtTypeReference<?>) - Method in interface spoon.reflect.reference.CtTypeReference
-
Checks visibility based on public, protected, package protected and private modifiers of type
- canAccess(CtTypeReference<?>) - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
- canBeBuilt(File, int) - Static method in class spoon.testing.utils.ModelUtils
-
checks that the file `outputDirectoryFile` can be parsed with Spoon , given a compliance level.
- canBeBuilt(File, int, boolean) - Static method in class spoon.testing.utils.ModelUtils
-
checks that the file `outputDirectoryFile` can be parsed with Spoon , given a compliance level and the noclasspath option.
- canBeBuilt(String, int) - Static method in class spoon.testing.utils.ModelUtils
-
checks that the file at path `outputDirectory` can be parsed with Spoon , given a compliance level.
- canBeBuilt(String, int, boolean) - Static method in class spoon.testing.utils.ModelUtils
-
checks that the file at path `outputDirectory` can be parsed with Spoon , given a compliance level and noclasspath option.
- canRemoveExpression(CtExpression<?>) - Method in class spoon.refactoring.CtParameterRemoveRefactoring
-
Detects whether `toBeRemovedExpression` can be safely removed during the refactoring
- CASE - Enum constant in enum spoon.reflect.path.CtRole
- CASE - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- CASE_EXPRESSIONS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- CASE_KIND - Enum constant in enum spoon.reflect.path.CtRole
- CASE_STATEMENTS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- CaseKind - Enum in spoon.reflect.code
- CAST - Enum constant in enum spoon.reflect.path.CtRole
- CastInfo() - Constructor for class spoon.support.compiler.jdt.ContextBuilder.CastInfo
- CASTS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- castTo(Object, Class<T>) - Method in class spoon.pattern.internal.parameter.AbstractParameterInfo
- castTo(Object, Class<T>) - Method in class spoon.pattern.internal.parameter.ListParameterInfo
- castTo(Object, Class<T>) - Method in class spoon.pattern.internal.parameter.MapParameterInfo
- castTo(Object, Class<T>) - Method in class spoon.pattern.internal.parameter.SetParameterInfo
- CATCH - Enum constant in enum spoon.reflect.path.CtRole
- CATCH - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- CATCH_CASES_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- CATCH_VARIABLE_MULTI_TYPES_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- CatchVariableReferenceFunction - Class in spoon.reflect.visitor.filter
-
This Query expects a
CtCatchVariable
as input and returns allCtCatchVariableReference
s, which refers this input. - CatchVariableReferenceFunction() - Constructor for class spoon.reflect.visitor.filter.CatchVariableReferenceFunction
- CatchVariableReferenceFunction(CtCatchVariable<?>) - Constructor for class spoon.reflect.visitor.filter.CatchVariableReferenceFunction
- CatchVariableScopeFunction - Class in spoon.reflect.visitor.filter
-
This Query expects a
CtCatchVariable
as input and returns all CtElements, which are in visibility scope of that catch variable. - CatchVariableScopeFunction() - Constructor for class spoon.reflect.visitor.filter.CatchVariableScopeFunction
- CatchVariableScopeFunction(CtScannerListener) - Constructor for class spoon.reflect.visitor.filter.CatchVariableScopeFunction
- ChainOfMatchersImpl - Class in spoon.pattern.internal.matcher
-
Chain of
RootNode
s. - ChangeCollector - Class in spoon.support.modelobs
-
Listens on changes on the spoon model and remembers them
- ChangeCollector() - Constructor for class spoon.support.modelobs.ChangeCollector
- changeLocalVariableName(CtLocalVariable<?>, String) - Static method in class spoon.refactoring.Refactoring
-
Changes name of a
CtLocalVariable
. - changeMethodName(CtMethod<?>, String) - Static method in class spoon.refactoring.Refactoring
-
Changes name of a method, propagates the change in the executable references of the model.
- changeResolver - Variable in class spoon.support.sniper.internal.SourceFragmentContextNormal
- ChangeResolver - Class in spoon.support.sniper.internal
-
Helper which provides details about changes on provided `element`
- ChangeResolver(ChangeCollector, CtElement) - Constructor for class spoon.support.sniper.internal.ChangeResolver
- changesPresent() - Method in class spoon.IncrementalLauncher
-
Returns true, if any source code changes after previous build are present, and false otherwise.
- changeTypeName(CtType<?>, String) - Static method in class spoon.refactoring.Refactoring
-
Changes name of a type element.
- CHARACTER - Variable in class spoon.reflect.factory.TypeFactory
- CHARACTER_PRIMITIVE - Variable in class spoon.reflect.factory.TypeFactory
- characterPrimitiveType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the character primitive type.
- characterType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the character type.
- Check - Class in spoon.testing.utils
- checkArgsAreAscending(int...) - Static method in class spoon.support.reflect.cu.position.SourcePositionImpl
-
fails when `values` are not sorted ascending It is used to check whether start/end values of SourcePosition are consistent
- checkAssignmentContracts() - Method in class spoon.ContractVerifier
-
checks that all assignments are aither a CtFieldWrite, a CtVariableWrite or a CtArrayWrite
- checkBoundAndUnboundTypeReference() - Method in class spoon.ContractVerifier
- checkCallState() - Method in class spoon.refactoring.MethodCallState
-
Checks the call state for the method.
- checkContractCtScanner() - Method in class spoon.ContractVerifier
-
verifies the core scanning contracts (enter implies exit, etc)
- checkElementIsContainedInAttributeOfItsParent() - Method in class spoon.ContractVerifier
-
contract: element is contained in attribute of element's parent
- checkElementToPathToElementEquivalence() - Method in class spoon.ContractVerifier
-
checks that for all elements, the path can be obtained, parsed, and give the same element when evaluated
- checkEquals(CtElement, CtElement) - Method in class spoon.support.visitor.equals.EqualsVisitor
- checker - Variable in class spoon.support.visitor.equals.EqualsVisitor
- checkGenericContracts() - Method in class spoon.ContractVerifier
- checkJavaIdentifiers() - Method in class spoon.ContractVerifier
-
checks that the identifiers are valid
- checkModelIsTree() - Method in class spoon.ContractVerifier
-
contract: each element is used only once in the model
- checkModifiers() - Method in class spoon.ContractVerifier
-
verifies that the explicit modifier should be present in the original source code
- checkNewNameIsValid() - Method in class spoon.refactoring.AbstractRenameRefactoring
-
client may implement this method to check whether
AbstractRenameRefactoring.newName
is valid - checkParentConsistency() - Method in class spoon.ContractVerifier
-
checks that the scanner behavior and the parents correspond
- checkParentConsistency(CtElement) - Method in class spoon.ContractVerifier
-
public modifier for testing purpose only, not in the public API
- checkParentContract() - Method in class spoon.ContractVerifier
-
checks that there is always one parent, corresponding to the scanning order
- checkpoint() - Method in interface spoon.support.util.ImmutableMap
- checkpoint() - Method in class spoon.support.util.ImmutableMapImpl
- checkRoleInParent() - Method in class spoon.ContractVerifier
- checksAreSkipped() - Method in interface spoon.compiler.Environment
-
Tells whether Spoon does no checks at all.
- checksAreSkipped() - Method in class spoon.support.StandardEnvironment
- checkShadow() - Method in class spoon.ContractVerifier
-
check that we have all shadow elements, and that they are correctly isShadow
- Child - Annotation Type in spoon.reflect.visitor
-
This annotation defines a method that contains children of an element of the meta model.
- childFragmentIdx - Variable in class spoon.support.sniper.internal.SourceFragmentContextNormal
- childFragments - Variable in class spoon.support.sniper.internal.SourceFragmentContextNormal
- Class() - Method in interface spoon.reflect.factory.Factory
-
Access to
ClassFactory
subfactory - Class() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CtClass
sub-factory. - CLASS - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- CLASSES - Enum constant in enum spoon.OutputType
-
One file per top-level class.
- ClassFactory - Class in spoon.reflect.factory
-
The
CtClass
sub-factory. - ClassFactory(Factory) - Constructor for class spoon.reflect.factory.ClassFactory
-
Creates a class sub-factory.
- classImports - Variable in class spoon.reflect.visitor.ImportScannerImpl
- classNamePresentInJavaLang(CtTypeReference<?>) - Method in class spoon.reflect.visitor.ImportScannerImpl
- classpath(String) - Method in class spoon.compiler.builder.ClasspathOptions
- classpath(String...) - Method in class spoon.compiler.builder.ClasspathOptions
- classpathOptions(ClasspathOptions<?>) - Method in interface spoon.compiler.builder.JDTBuilder
-
Classpath options for the compiler.
- classpathOptions(ClasspathOptions<?>) - Method in class spoon.compiler.builder.JDTBuilderImpl
- ClasspathOptions<T extends ClasspathOptions<T>> - Class in spoon.compiler.builder
- ClasspathOptions() - Constructor for class spoon.compiler.builder.ClasspathOptions
- ClassTypingContext - Class in spoon.support.visitor
-
Helper class created from type X or reference to X.
- ClassTypingContext(CtType<?>) - Constructor for class spoon.support.visitor.ClassTypingContext
- ClassTypingContext(CtTypeReference<?>) - Constructor for class spoon.support.visitor.ClassTypingContext
- cleanComment(String) - Static method in class spoon.support.compiler.jdt.JDTCommentBuilder
- clear() - Method in class spoon.support.util.EmptyClearableList
- clear() - Method in class spoon.support.util.EmptyClearableSet
- clear() - Method in class spoon.support.util.internal.ElementNameMap
- clear() - Method in class spoon.support.util.ModelList
- clear() - Method in class spoon.support.util.ModelSet
-
Deprecated.
- clearConsumedAnnotationTypes() - Method in class spoon.processing.AbstractAnnotationProcessor
-
Clears the consumed annotation types.
- clearProcessedAnnotationTypes() - Method in class spoon.processing.AbstractAnnotationProcessor
-
Clears the processed annotation types.
- clearProcessedElementType() - Method in class spoon.processing.AbstractProcessor
-
Clears the processed element types.
- clone() - Method in class spoon.experimental.CtUnresolvedImport
- clone() - Method in interface spoon.reflect.code.CtAnnotationFieldAccess
- clone() - Method in interface spoon.reflect.code.CtArrayAccess
- clone() - Method in interface spoon.reflect.code.CtArrayRead
- clone() - Method in interface spoon.reflect.code.CtArrayWrite
- clone() - Method in interface spoon.reflect.code.CtAssert
- clone() - Method in interface spoon.reflect.code.CtAssignment
- clone() - Method in interface spoon.reflect.code.CtBinaryOperator
- clone() - Method in interface spoon.reflect.code.CtBlock
- clone() - Method in interface spoon.reflect.code.CtBreak
- clone() - Method in interface spoon.reflect.code.CtCase
- clone() - Method in interface spoon.reflect.code.CtCatch
- clone() - Method in interface spoon.reflect.code.CtCatchVariable
- clone() - Method in interface spoon.reflect.code.CtCodeElement
- clone() - Method in interface spoon.reflect.code.CtCodeSnippetExpression
- clone() - Method in interface spoon.reflect.code.CtCodeSnippetStatement
- clone() - Method in interface spoon.reflect.code.CtComment
- clone() - Method in interface spoon.reflect.code.CtConditional
- clone() - Method in interface spoon.reflect.code.CtConstructorCall
- clone() - Method in interface spoon.reflect.code.CtContinue
- clone() - Method in interface spoon.reflect.code.CtDo
- clone() - Method in interface spoon.reflect.code.CtExecutableReferenceExpression
- clone() - Method in interface spoon.reflect.code.CtExpression
- clone() - Method in interface spoon.reflect.code.CtFieldAccess
- clone() - Method in interface spoon.reflect.code.CtFieldRead
- clone() - Method in interface spoon.reflect.code.CtFieldWrite
- clone() - Method in interface spoon.reflect.code.CtFor
- clone() - Method in interface spoon.reflect.code.CtForEach
- clone() - Method in interface spoon.reflect.code.CtIf
- clone() - Method in interface spoon.reflect.code.CtInvocation
- clone() - Method in interface spoon.reflect.code.CtJavaDoc
- clone() - Method in interface spoon.reflect.code.CtJavaDocTag
- clone() - Method in interface spoon.reflect.code.CtLambda
- clone() - Method in interface spoon.reflect.code.CtLiteral
-
Overriding return type, a clone of a CtLiteral returns a CtLiteral
- clone() - Method in interface spoon.reflect.code.CtLocalVariable
- clone() - Method in interface spoon.reflect.code.CtLoop
- clone() - Method in interface spoon.reflect.code.CtNewArray
- clone() - Method in interface spoon.reflect.code.CtNewClass
- clone() - Method in interface spoon.reflect.code.CtOperatorAssignment
- clone() - Method in interface spoon.reflect.code.CtReturn
- clone() - Method in interface spoon.reflect.code.CtStatement
- clone() - Method in interface spoon.reflect.code.CtStatementList
- clone() - Method in interface spoon.reflect.code.CtSuperAccess
- clone() - Method in interface spoon.reflect.code.CtSwitch
- clone() - Method in interface spoon.reflect.code.CtSwitchExpression
- clone() - Method in interface spoon.reflect.code.CtSynchronized
- clone() - Method in interface spoon.reflect.code.CtTargetedExpression
- clone() - Method in interface spoon.reflect.code.CtTextBlock
-
Overriding return type, a clone of a CtTextBlock returns a CtTextBlock
- clone() - Method in interface spoon.reflect.code.CtThisAccess
- clone() - Method in interface spoon.reflect.code.CtThrow
- clone() - Method in interface spoon.reflect.code.CtTry
- clone() - Method in interface spoon.reflect.code.CtTryWithResource
- clone() - Method in interface spoon.reflect.code.CtTypeAccess
- clone() - Method in interface spoon.reflect.code.CtTypePattern
- clone() - Method in interface spoon.reflect.code.CtUnaryOperator
- clone() - Method in interface spoon.reflect.code.CtVariableAccess
- clone() - Method in interface spoon.reflect.code.CtVariableRead
- clone() - Method in interface spoon.reflect.code.CtVariableWrite
- clone() - Method in interface spoon.reflect.code.CtWhile
- clone() - Method in interface spoon.reflect.code.CtYieldStatement
- clone() - Method in interface spoon.reflect.declaration.CtAnnotation
- clone() - Method in interface spoon.reflect.declaration.CtAnnotationMethod
- clone() - Method in interface spoon.reflect.declaration.CtAnnotationType
- clone() - Method in interface spoon.reflect.declaration.CtAnonymousExecutable
- clone() - Method in interface spoon.reflect.declaration.CtClass
- clone() - Method in interface spoon.reflect.declaration.CtCompilationUnit
- clone() - Method in interface spoon.reflect.declaration.CtConstructor
- clone() - Method in interface spoon.reflect.declaration.CtElement
-
Clone the element which calls this method in a new object.
- clone() - Method in interface spoon.reflect.declaration.CtEnum
- clone() - Method in interface spoon.reflect.declaration.CtEnumValue
- clone() - Method in interface spoon.reflect.declaration.CtExecutable
- clone() - Method in interface spoon.reflect.declaration.CtField
- clone() - Method in interface spoon.reflect.declaration.CtImport
- clone() - Method in interface spoon.reflect.declaration.CtInterface
- clone() - Method in interface spoon.reflect.declaration.CtMethod
- clone() - Method in interface spoon.reflect.declaration.CtModule
- clone() - Method in interface spoon.reflect.declaration.CtModuleRequirement
- clone() - Method in interface spoon.reflect.declaration.CtNamedElement
- clone() - Method in interface spoon.reflect.declaration.CtPackage
- clone() - Method in interface spoon.reflect.declaration.CtPackageDeclaration
- clone() - Method in interface spoon.reflect.declaration.CtPackageExport
- clone() - Method in interface spoon.reflect.declaration.CtParameter
- clone() - Method in interface spoon.reflect.declaration.CtProvidedService
- clone() - Method in interface spoon.reflect.declaration.CtRecord
- clone() - Method in interface spoon.reflect.declaration.CtRecordComponent
- clone() - Method in interface spoon.reflect.declaration.CtType
- clone() - Method in interface spoon.reflect.declaration.CtTypeParameter
- clone() - Method in interface spoon.reflect.declaration.CtUsedService
- clone() - Method in interface spoon.reflect.reference.CtArrayTypeReference
- clone() - Method in interface spoon.reflect.reference.CtCatchVariableReference
- clone() - Method in interface spoon.reflect.reference.CtExecutableReference
- clone() - Method in interface spoon.reflect.reference.CtFieldReference
- clone() - Method in interface spoon.reflect.reference.CtIntersectionTypeReference
- clone() - Method in interface spoon.reflect.reference.CtLocalVariableReference
- clone() - Method in interface spoon.reflect.reference.CtModuleReference
- clone() - Method in interface spoon.reflect.reference.CtPackageReference
- clone() - Method in interface spoon.reflect.reference.CtParameterReference
- clone() - Method in interface spoon.reflect.reference.CtReference
- clone() - Method in interface spoon.reflect.reference.CtTypeMemberWildcardImportReference
- clone() - Method in interface spoon.reflect.reference.CtTypeParameterReference
- clone() - Method in interface spoon.reflect.reference.CtTypeReference
- clone() - Method in interface spoon.reflect.reference.CtUnboundVariableReference
- clone() - Method in interface spoon.reflect.reference.CtVariableReference
- clone() - Method in interface spoon.reflect.reference.CtWildcardReference
- clone() - Method in class spoon.support.reflect.code.CtAnnotationFieldAccessImpl
- clone() - Method in class spoon.support.reflect.code.CtArrayAccessImpl
- clone() - Method in class spoon.support.reflect.code.CtArrayReadImpl
- clone() - Method in class spoon.support.reflect.code.CtArrayWriteImpl
- clone() - Method in class spoon.support.reflect.code.CtAssertImpl
- clone() - Method in class spoon.support.reflect.code.CtAssignmentImpl
- clone() - Method in class spoon.support.reflect.code.CtBinaryOperatorImpl
- clone() - Method in class spoon.support.reflect.code.CtBlockImpl
- clone() - Method in class spoon.support.reflect.code.CtBreakImpl
- clone() - Method in class spoon.support.reflect.code.CtCaseImpl
- clone() - Method in class spoon.support.reflect.code.CtCatchImpl
- clone() - Method in class spoon.support.reflect.code.CtCatchVariableImpl
- clone() - Method in class spoon.support.reflect.code.CtCodeElementImpl
- clone() - Method in class spoon.support.reflect.code.CtCodeSnippetExpressionImpl
- clone() - Method in class spoon.support.reflect.code.CtCodeSnippetStatementImpl
- clone() - Method in class spoon.support.reflect.code.CtCommentImpl
- clone() - Method in class spoon.support.reflect.code.CtConditionalImpl
- clone() - Method in class spoon.support.reflect.code.CtConstructorCallImpl
- clone() - Method in class spoon.support.reflect.code.CtContinueImpl
- clone() - Method in class spoon.support.reflect.code.CtDoImpl
- clone() - Method in class spoon.support.reflect.code.CtExecutableReferenceExpressionImpl
- clone() - Method in class spoon.support.reflect.code.CtExpressionImpl
- clone() - Method in class spoon.support.reflect.code.CtFieldAccessImpl
- clone() - Method in class spoon.support.reflect.code.CtFieldReadImpl
- clone() - Method in class spoon.support.reflect.code.CtFieldWriteImpl
- clone() - Method in class spoon.support.reflect.code.CtForEachImpl
- clone() - Method in class spoon.support.reflect.code.CtForImpl
- clone() - Method in class spoon.support.reflect.code.CtIfImpl
- clone() - Method in class spoon.support.reflect.code.CtInvocationImpl
- clone() - Method in class spoon.support.reflect.code.CtJavaDocImpl
- clone() - Method in class spoon.support.reflect.code.CtJavaDocTagImpl
- clone() - Method in class spoon.support.reflect.code.CtLambdaImpl
- clone() - Method in class spoon.support.reflect.code.CtLiteralImpl
- clone() - Method in class spoon.support.reflect.code.CtLocalVariableImpl
- clone() - Method in class spoon.support.reflect.code.CtLoopImpl
- clone() - Method in class spoon.support.reflect.code.CtNewArrayImpl
- clone() - Method in class spoon.support.reflect.code.CtNewClassImpl
- clone() - Method in class spoon.support.reflect.code.CtOperatorAssignmentImpl
- clone() - Method in class spoon.support.reflect.code.CtReturnImpl
- clone() - Method in class spoon.support.reflect.code.CtStatementImpl
- clone() - Method in class spoon.support.reflect.code.CtStatementListImpl
- clone() - Method in class spoon.support.reflect.code.CtSuperAccessImpl
- clone() - Method in class spoon.support.reflect.code.CtSwitchExpressionImpl
- clone() - Method in class spoon.support.reflect.code.CtSwitchImpl
- clone() - Method in class spoon.support.reflect.code.CtSynchronizedImpl
- clone() - Method in class spoon.support.reflect.code.CtTargetedExpressionImpl
- clone() - Method in class spoon.support.reflect.code.CtTextBlockImpl
- clone() - Method in class spoon.support.reflect.code.CtThisAccessImpl
- clone() - Method in class spoon.support.reflect.code.CtThrowImpl
- clone() - Method in class spoon.support.reflect.code.CtTryImpl
- clone() - Method in class spoon.support.reflect.code.CtTryWithResourceImpl
- clone() - Method in class spoon.support.reflect.code.CtTypeAccessImpl
- clone() - Method in class spoon.support.reflect.code.CtTypePatternImpl
- clone() - Method in class spoon.support.reflect.code.CtUnaryOperatorImpl
- clone() - Method in class spoon.support.reflect.code.CtVariableAccessImpl
- clone() - Method in class spoon.support.reflect.code.CtVariableReadImpl
- clone() - Method in class spoon.support.reflect.code.CtVariableWriteImpl
- clone() - Method in class spoon.support.reflect.code.CtWhileImpl
- clone() - Method in class spoon.support.reflect.code.CtYieldStatementImpl
- clone() - Method in class spoon.support.reflect.declaration.CtAnnotationImpl
- clone() - Method in class spoon.support.reflect.declaration.CtAnnotationMethodImpl
- clone() - Method in class spoon.support.reflect.declaration.CtAnnotationTypeImpl
- clone() - Method in class spoon.support.reflect.declaration.CtAnonymousExecutableImpl
- clone() - Method in class spoon.support.reflect.declaration.CtClassImpl
- clone() - Method in class spoon.support.reflect.declaration.CtCompilationUnitImpl
- clone() - Method in class spoon.support.reflect.declaration.CtConstructorImpl
- clone() - Method in class spoon.support.reflect.declaration.CtElementImpl
- clone() - Method in class spoon.support.reflect.declaration.CtEnumImpl
- clone() - Method in class spoon.support.reflect.declaration.CtEnumValueImpl
- clone() - Method in class spoon.support.reflect.declaration.CtExecutableImpl
- clone() - Method in class spoon.support.reflect.declaration.CtFieldImpl
- clone() - Method in class spoon.support.reflect.declaration.CtImportImpl
- clone() - Method in class spoon.support.reflect.declaration.CtInterfaceImpl
- clone() - Method in class spoon.support.reflect.declaration.CtMethodImpl
- clone() - Method in class spoon.support.reflect.declaration.CtModuleImpl
- clone() - Method in class spoon.support.reflect.declaration.CtModuleRequirementImpl
- clone() - Method in class spoon.support.reflect.declaration.CtNamedElementImpl
- clone() - Method in class spoon.support.reflect.declaration.CtPackageDeclarationImpl
- clone() - Method in class spoon.support.reflect.declaration.CtPackageExportImpl
- clone() - Method in class spoon.support.reflect.declaration.CtPackageImpl
- clone() - Method in class spoon.support.reflect.declaration.CtParameterImpl
- clone() - Method in class spoon.support.reflect.declaration.CtProvidedServiceImpl
- clone() - Method in class spoon.support.reflect.declaration.CtRecordComponentImpl
- clone() - Method in class spoon.support.reflect.declaration.CtRecordImpl
- clone() - Method in class spoon.support.reflect.declaration.CtTypeImpl
- clone() - Method in class spoon.support.reflect.declaration.CtTypeParameterImpl
- clone() - Method in class spoon.support.reflect.declaration.CtUsedServiceImpl
- clone() - Method in class spoon.support.reflect.reference.CtArrayTypeReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtCatchVariableReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtExecutableReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtFieldReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtIntersectionTypeReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtLocalVariableReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtModuleReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtPackageReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtParameterReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtTypeMemberWildcardImportReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtTypeParameterReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtUnboundVariableReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtVariableReferenceImpl
- clone() - Method in class spoon.support.reflect.reference.CtWildcardReferenceImpl
- clone(Collection<T>) - Method in class spoon.support.visitor.equals.CloneHelper
- clone(List<T>) - Method in class spoon.support.visitor.equals.CloneHelper
- clone(Map<String, T>) - Method in class spoon.support.visitor.equals.CloneHelper
- clone(Set<T>) - Method in class spoon.support.visitor.equals.CloneHelper
-
clones a Set of elements
- clone(T) - Method in interface spoon.reflect.factory.CoreFactory
-
Recursively clones a given element of the metamodel and all its child elements.
- clone(T) - Method in class spoon.support.DefaultCoreFactory
- clone(T) - Method in class spoon.support.visitor.equals.CloneHelper
- CloneBuilder - Class in spoon.support.visitor.clone
-
Used to set all data in the cloned element.
- CloneBuilder() - Constructor for class spoon.support.visitor.clone.CloneBuilder
- CloneHelper - Class in spoon.support.visitor.equals
-
CloneHelper
is responsible for creating clones ofCtElement
AST nodes including the whole subtree. - CloneHelper() - Constructor for class spoon.support.visitor.equals.CloneHelper
- cloneIfNeeded(T) - Method in class spoon.pattern.internal.ValueConvertorImpl
- CloneVisitor - Class in spoon.support.visitor.clone
-
Used to clone a given element.
- CloneVisitor(CloneHelper) - Constructor for class spoon.support.visitor.clone.CloneVisitor
- close() - Method in class spoon.reflect.visitor.ListPrinter
- close() - Method in class spoon.reflect.visitor.PrintingContext.Writable
- Code() - Method in interface spoon.reflect.factory.Factory
-
Access to
CodeFactory
subfactory - Code() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CtCodeElement
sub-factory. - CODE - Enum constant in enum spoon.javadoc.internal.JavadocInlineTag.Type
- CODE_SNIPPET - Enum constant in enum spoon.support.sniper.internal.TokenType
- CodeFactory - Class in spoon.reflect.factory
-
This sub-factory contains utility methods to create code elements.
- CodeFactory(Factory) - Constructor for class spoon.reflect.factory.CodeFactory
-
Creates a
CtCodeElement
sub-factory. - COLLECTION - Variable in class spoon.reflect.factory.TypeFactory
- CollectionContext<T extends Collection<?>> - Class in spoon.support.modelobs.context
- CollectionContext(CtElement, CtRole, T) - Constructor for class spoon.support.modelobs.context.CollectionContext
- CollectionSourceFragment - Class in spoon.support.sniper.internal
-
SourceFragment
of List or Set ofElementSourceFragment
s which belong to collection role. - CollectionSourceFragment(List<SourceFragment>) - Constructor for class spoon.support.sniper.internal.CollectionSourceFragment
- COLON - Enum constant in enum spoon.reflect.code.CaseKind
- columnsName - Static variable in class spoon.support.gui.SpoonObjectFieldsTable
- comment() - Method in interface spoon.reflect.code.CtBlock
-
If the block is a method body, then all statements inside the body are commented out.
- comment() - Method in interface spoon.reflect.code.CtStatement
-
Comments the statement (eg `// call()`).
- comment() - Method in class spoon.support.reflect.code.CtBlockImpl
- comment() - Method in class spoon.support.reflect.declaration.CtElementImpl
-
Replace the statement with a CtComment having the statement as text
- COMMENT - Enum constant in enum spoon.reflect.path.CtRole
- COMMENT - Enum constant in enum spoon.support.compiler.SpoonProgress.Process
- COMMENT - Enum constant in enum spoon.support.sniper.internal.TokenType
- COMMENT_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- COMMENT_CONTENT - Enum constant in enum spoon.reflect.path.CtRole
- COMMENT_LINKING - Enum constant in enum spoon.support.compiler.SpoonProgress.Process
- COMMENT_STAR - Static variable in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
The star at the beginning of a block/JavaDoc comment line
- COMMENT_TAG - Enum constant in enum spoon.reflect.path.CtRole
- COMMENT_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- CommentHelper - Class in spoon.reflect.visitor
-
Computes source code representation of the Comment literal
- CommentOffset - Enum in spoon.reflect.visitor.printer
- COMPACT_CONSTRUCTOR - Enum constant in enum spoon.reflect.path.CtRole
- compare(CompilationUnitDeclaration, CompilationUnitDeclaration) - Method in class spoon.support.comparator.FixedOrderBasedOnFileNameCompilationUnitComparator
- compare(CtElement, CtElement) - Method in class spoon.support.comparator.CtLineElementComparator
-
Returns 0 if o1 has the same position as o2, or both positions are invalid and o1.equals(o2).
- compare(CtElement, CtElement) - Method in class spoon.support.comparator.DeepRepresentationComparator
- compare(CtElement, CtElement) - Method in class spoon.support.comparator.QualifiedNameComparator
- compare(CtElement, CtElement) - Method in class spoon.support.comparator.SignatureComparator
- compare(CtImport, CtImport) - Method in class spoon.reflect.visitor.DefaultImportComparator
- COMPILATION_UNIT_DECLARED_TYPES_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- COMPILATION_UNIT_IMPORTS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- COMPILATION_UNITS - Enum constant in enum spoon.OutputType
-
Follows the compilation units given by the input.
- CompilationUnit - Interface in spoon.reflect.cu
-
Deprecated.
- CompilationUnit() - Method in interface spoon.reflect.factory.Factory
-
Access to
CompilationUnitFactory
subfactory - CompilationUnit() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CompilationUnit
sub-factory. - CompilationUnitFactory - Class in spoon.reflect.factory
-
A factory to create some evaluation utilities on the Spoon metamodel.
- CompilationUnitFactory(Factory) - Constructor for class spoon.reflect.factory.CompilationUnitFactory
-
Creates the evaluation factory.
- CompilationUnitFilter - Interface in spoon.support.compiler.jdt
-
This interface is used by instances of
SpoonModelBuilder
to exclude particularCompilationUnit
s while generating aCtModel
withSpoonModelBuilder.build(spoon.compiler.builder.JDTBuilder)
. - compilationUnitFilters - Variable in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- CompilationUnitImpl - Class in spoon.support.reflect.cu
-
Implements a compilation unit.
- CompilationUnitImpl() - Constructor for class spoon.support.reflect.cu.CompilationUnitImpl
- compilationUnits - Variable in class spoon.support.compiler.jdt.JDTBatchCompiler
- compile() - Method in interface spoon.reflect.code.CtCodeSnippetExpression
-
Compiles this expression snippet to produce the corresponding AST expression.
- compile() - Method in interface spoon.reflect.code.CtCodeSnippetStatement
-
Compiles this statement code snippet to produce the corresponding AST statement.
- compile() - Method in class spoon.support.reflect.code.CtCodeSnippetExpressionImpl
- compile() - Method in class spoon.support.reflect.code.CtCodeSnippetStatementImpl
- compile(SpoonModelBuilder.InputType...) - Method in interface spoon.SpoonModelBuilder
-
Generates the bytecode associated to the classes stored in this compiler's factory.
- compile(SpoonModelBuilder.InputType...) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- COMPILE - Enum constant in enum spoon.support.compiler.SpoonProgress.Process
- compileAndReplaceSnippets() - Method in interface spoon.reflect.declaration.CtType
-
Replace all the code snippets that are found in this type by the corresponding Spoon AST.
- compileAndReplaceSnippets() - Method in class spoon.support.reflect.declaration.CtTypeImpl
- compileAndReplaceSnippetsIn(CtType<?>) - Static method in class spoon.support.compiler.SnippetCompilationHelper
-
Takes the class given as parameter, pretty-prints it, get the JDT'ast and the corrspondong Spoon AST and finally replace all children of initialClass by the the fresh ones.
- compileExpression(CtCodeSnippetExpression<T>) - Static method in class spoon.support.compiler.SnippetCompilationHelper
- compileProcessors() - Method in class spoon.compiler.builder.AnnotationProcessingOptions
- compileStatement(CtCodeSnippetStatement) - Static method in class spoon.support.compiler.SnippetCompilationHelper
- compileStatement(CtCodeSnippetStatement, CtTypeReference) - Static method in class spoon.support.compiler.SnippetCompilationHelper
- COMPL - Enum constant in enum spoon.reflect.code.UnaryOperatorKind
-
Binary complement.
- compliance(int) - Method in class spoon.compiler.builder.ComplianceOptions
- complianceLevel(int) - Method in class spoon.FluentLauncher
-
Sets the Java version compliance level.
- complianceOptions(ComplianceOptions<?>) - Method in interface spoon.compiler.builder.JDTBuilder
-
Compliance options for the compiler.
- complianceOptions(ComplianceOptions<?>) - Method in class spoon.compiler.builder.JDTBuilderImpl
- ComplianceOptions<T extends ComplianceOptions<T>> - Class in spoon.compiler.builder
- ComplianceOptions() - Constructor for class spoon.compiler.builder.ComplianceOptions
- CompositeFilter<T extends CtElement> - Class in spoon.reflect.visitor.filter
-
This class defines a composite filter, which can compose several filters together by using
FilteringOperator
. - CompositeFilter(FilteringOperator, Filter<T>...) - Constructor for class spoon.reflect.visitor.filter.CompositeFilter
-
Creates a new composite filter.
- CompoundSourcePosition - Interface in spoon.reflect.cu.position
-
This interface represents the position of a program element like an expression in a source file.
- CompoundSourcePositionImpl - Class in spoon.support.reflect.cu.position
-
This class represents the position of a named Java program element in a source file.
- CompoundSourcePositionImpl(CompilationUnit, int, int, int, int, int[]) - Constructor for class spoon.support.reflect.cu.position.CompoundSourcePositionImpl
- CompressionType - Enum in spoon.support
-
Different types of compressions used, e.g.
- ComputedParameterInfo - Class in spoon.pattern.internal.parameter
-
Represents a parameter which is related to a value of another parameter.
- ComputedParameterInfo(ParameterComputer, ParameterInfo) - Constructor for class spoon.pattern.internal.parameter.ComputedParameterInfo
- computeImports(CtElement) - Method in interface spoon.reflect.visitor.ImportScanner
-
Computes import of a
CtElement
- computeImports(CtElement) - Method in class spoon.reflect.visitor.ImportScannerImpl
- computeValue(ResultHolder<Object>, ResultHolder<?>) - Method in interface spoon.pattern.internal.parameter.ParameterComputer
- computeValue(ResultHolder<Object>, ResultHolder<?>) - Method in class spoon.pattern.internal.parameter.SimpleNameOfTypeReferenceParameterComputer
- ConceptKind - Enum in spoon.metamodel
-
Represents categories of metamodel types
- CONDITION - Enum constant in enum spoon.reflect.path.CtRole
- configureInlineStatements(Consumer<InlinedStatementConfigurator>) - Method in class spoon.pattern.PatternBuilder
-
Configures inlined statements For example if the `for` statement in this pattern model
- configurePatternParameters() - Method in class spoon.pattern.PatternBuilder
-
All the variable references, whose variables are out of the template model are automatically marked as pattern parameters
- configurePatternParameters(Consumer<PatternParameterConfigurator>) - Method in class spoon.pattern.PatternBuilder
-
Configure pattern parameters with a
PatternParameterConfigurator
- ConflictResolutionMode - Enum in spoon.pattern
-
Defines what happens when a
RootNode
has to be replaced by anotherRootNode
, default inConflictResolutionMode.FAIL
. - ConstantNode<T> - Class in spoon.pattern.internal.node
-
Generates/Matches a copy of single template object
- ConstantNode(T) - Constructor for class spoon.pattern.internal.node.ConstantNode
- Constructor() - Method in interface spoon.reflect.factory.Factory
-
Access to
ConstructorFactory
subfactory - Constructor() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CtConstructor
sub-factory. - CONSTRUCTOR - Enum constant in enum spoon.reflect.declaration.CtAnnotatedElementType
-
Constructor declaration
- CONSTRUCTOR - Enum constant in enum spoon.reflect.path.CtRole
- CONSTRUCTOR_CALL_TYPE_PARAMETERS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- CONSTRUCTOR_NAME - Static variable in interface spoon.reflect.reference.CtExecutableReference
- CONSTRUCTOR_TYPE_PARAMETERS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- ConstructorFactory - Class in spoon.reflect.factory
-
The
CtConstructor
sub-factory. - ConstructorFactory(Factory) - Constructor for class spoon.reflect.factory.ConstructorFactory
-
Creates a new constructor sub-factory.
- CONTAINED_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- ContainerKind - Enum in spoon.reflect.meta
-
Represents a kind of data, which is used in an field or in a role in the Spoon metamodel.
- contains(Object) - Method in class spoon.support.util.EmptyClearableList
- contains(Object) - Method in class spoon.support.util.EmptyClearableSet
- contains(Object) - Method in class spoon.support.util.ModelList
- contains(Object) - Method in class spoon.support.util.ModelSet
-
Deprecated.
- contains(CtExecutable<?>) - Method in class spoon.refactoring.MethodCallState
- contains(CtType<?>) - Method in class spoon.refactoring.MethodCallState
- containsAll(Collection<?>) - Method in class spoon.support.util.EmptyClearableList
- containsAll(Collection<?>) - Method in class spoon.support.util.EmptyClearableSet
- containsAll(Collection<?>) - Method in class spoon.support.util.ModelList
- containsAll(Collection<?>) - Method in class spoon.support.util.ModelSet
-
Deprecated.
- containsKey(Object) - Method in class spoon.support.util.internal.ElementNameMap
- content - Variable in class spoon.support.reflect.code.CtCommentImpl
- Context - Class in spoon.support.modelobs.context
-
defines the context of an action
- Context(CtElement, CtRole) - Constructor for class spoon.support.modelobs.context.Context
- ContextBuilder - Class in spoon.support.compiler.jdt
- ContextBuilder.CastInfo - Class in spoon.support.compiler.jdt
- CONTINUE - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- continueExecution() - Method in class spoon.compiler.builder.AdvancedOptions
- ContractVerifier - Class in spoon
-
Verifies all contracts that should hold on any AST.
- ContractVerifier() - Constructor for class spoon.ContractVerifier
-
use at your own risk, not part of the public API
- ContractVerifier(CtPackage) - Constructor for class spoon.ContractVerifier
- convertElementToRuntimeObject(CtElement) - Static method in class spoon.support.reflect.eval.EvalHelper
-
Evaluates and converts CtExpression to their equivalent runtime objects eg "CtLiteral(3) + CtLiteral(4)" -> 7
- convertSingleValue(Factory, Object, Class<T>) - Method in class spoon.pattern.internal.parameter.AbstractParameterInfo
- convertValue(Factory, ResultHolder<T>, Object) - Method in class spoon.pattern.internal.parameter.AbstractParameterInfo
- copy(CtElement, CtElement) - Method in class spoon.support.visitor.clone.CloneBuilder
- copyAndSet(ParameterInfo) - Method in class spoon.pattern.PatternParameterConfigurator.ParameterElementPair
- copyAndSet(CtElement) - Method in class spoon.pattern.PatternParameterConfigurator.ParameterElementPair
- copyAndSetParams(ImmutableMap) - Method in class spoon.pattern.internal.matcher.TobeMatched
-
Makes a copy of this match context with the same targets, but with new `parameters`
- copyMethod() - Method in interface spoon.reflect.declaration.CtMethod
-
Copy the method, where copy means cloning + porting all the references of the old method to the new method (important for recursive methods).
- copyMethod() - Method in class spoon.support.reflect.declaration.CtMethodImpl
- copyMethod(CtMethod<?>) - Static method in class spoon.refactoring.Refactoring
-
See doc in
CtMethod.copyMethod()
- copyOfTheCollection - Variable in class spoon.support.modelobs.context.CollectionContext
- copyType() - Method in interface spoon.reflect.declaration.CtType
-
Copy the type, where copy means cloning + porting all the references in the clone from the old type to the new type.
- copyType() - Method in class spoon.support.reflect.declaration.CtTypeImpl
- copyType(CtType<?>) - Static method in class spoon.refactoring.Refactoring
-
See doc in
CtType.copyType()
- Core() - Method in interface spoon.reflect.factory.Factory
-
Access to
CoreFactory
subfactory - Core() - Method in class spoon.reflect.factory.FactoryImpl
-
The core factory.
- CoreFactory - Interface in spoon.reflect.factory
-
This interface defines the core creation methods for the meta-model (to be implemented so that Spoon can manipulate other meta-model implementations).
- create() - Method in class spoon.reflect.factory.CompilationUnitFactory
-
Creates a compilation unit with no associated files.
- create(Class<? extends CtElement>) - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an instance of the concrete metamodel class given as parameter.
- create(Class<? extends CtElement>) - Method in class spoon.support.DefaultCoreFactory
- create(Method) - Static method in class spoon.support.visitor.java.reflect.RtMethod
- create(String) - Method in class spoon.reflect.factory.AnnotationFactory
-
Creates an annotation type.
- create(String) - Method in class spoon.reflect.factory.ClassFactory
-
Creates a class from its qualified name.
- create(String) - Method in class spoon.reflect.factory.EnumFactory
-
Creates an enum from its qualified name.
- create(String) - Method in class spoon.reflect.factory.InterfaceFactory
-
Creates an interface from its qualified name.
- create(List<?>, Map<CtElement, RootNode>) - Static method in class spoon.pattern.internal.node.ElementNode
-
Same like
ElementNode.create(CtElement, Map)
but withList
of elements or primitive objects - create(List<? extends RootNode>, Matchers) - Static method in class spoon.pattern.internal.matcher.ChainOfMatchersImpl
- create(List<? extends CtElement>) - Static method in class spoon.pattern.PatternBuilder
-
Creates a
PatternBuilder
from the List of template elements - create(Map<String, ?>, Map<CtElement, RootNode>) - Static method in class spoon.pattern.internal.node.ElementNode
-
Same like
ElementNode.create(CtElement, Map)
but withMap
of String to elements or primitive objects - create(Set<?>, Map<CtElement, RootNode>) - Static method in class spoon.pattern.internal.node.ElementNode
-
Same like
ElementNode.create(CtElement, Map)
but withSet
of elements or primitive objects - create(CtClass<?>, String) - Method in class spoon.reflect.factory.ClassFactory
-
Creates an inner class.
- create(CtClass<?>, Set<ModifierKind>, CtTypeReference<R>, String, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>, CtBlock<B>) - Method in class spoon.reflect.factory.MethodFactory
-
Creates a method.
- create(CtClass<T>, Set<ModifierKind>, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>) - Method in class spoon.reflect.factory.ConstructorFactory
-
Creates an empty constructor.
- create(CtClass<T>, Set<ModifierKind>, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>, CtBlock<T>) - Method in class spoon.reflect.factory.ConstructorFactory
-
Creates a constructor.
- create(CtClass<T>, CtConstructor<?>) - Method in class spoon.reflect.factory.ConstructorFactory
-
Copies a constructor into a target class.
- create(CtClass<T>, CtMethod<?>) - Method in class spoon.reflect.factory.ConstructorFactory
-
Creates a constructor into a target class by copying it from a source method.
- create(CtElement...) - Static method in class spoon.pattern.PatternBuilder
- create(CtElement, Map<CtElement, RootNode>) - Static method in class spoon.pattern.internal.node.ElementNode
-
Creates an implicit
ElementNode
, which contains all non derived attributes of `element` and all it's children - create(CtPackage, String) - Method in class spoon.reflect.factory.AnnotationFactory
-
Creates an annotation type.
- create(CtPackage, String) - Method in class spoon.reflect.factory.ClassFactory
-
Creates a top-level class.
- create(CtPackage, String) - Method in class spoon.reflect.factory.EnumFactory
-
Creates a new enumeration type
- create(CtPackage, String) - Method in class spoon.reflect.factory.InterfaceFactory
-
Creates an interface.
- create(CtPackage, String) - Method in class spoon.reflect.factory.PackageFactory
-
Creates a new package (see also
PackageFactory.getOrCreate(String)
). - create(CtType<?>, Set<ModifierKind>, CtTypeReference<T>, String) - Method in class spoon.reflect.factory.FieldFactory
-
Creates a field.
- create(CtType<?>, Set<ModifierKind>, CtTypeReference<T>, String, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>) - Method in class spoon.reflect.factory.MethodFactory
-
Creates an empty method.
- create(CtType<?>, Set<ModifierKind>, CtTypeReference<T>, String, CtExpression<T>) - Method in class spoon.reflect.factory.FieldFactory
-
Creates a field.
- create(CtType<?>, CtField<T>) - Method in class spoon.reflect.factory.FieldFactory
-
Creates a field by copying an existing field.
- create(CtType<?>, CtMethod<T>, boolean) - Method in class spoon.reflect.factory.MethodFactory
-
Creates a method by copying an existing method.
- create(CtType<T>, String) - Method in class spoon.reflect.factory.InterfaceFactory
-
Creates an inner interface
- create(ImmutableMap, ContainerKind, Object) - Static method in class spoon.pattern.internal.matcher.TobeMatched
- createAnnotation() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an annotation.
- createAnnotation() - Method in interface spoon.reflect.factory.Factory
- createAnnotation() - Method in class spoon.reflect.factory.FactoryImpl
- createAnnotation() - Method in class spoon.support.DefaultCoreFactory
- createAnnotation(CtTypeReference<A>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates an annotation.
- createAnnotation(CtTypeReference<A>) - Method in interface spoon.reflect.factory.Factory
- createAnnotation(CtTypeReference<A>) - Method in class spoon.reflect.factory.FactoryImpl
- createAnnotationFieldAccess() - Method in interface spoon.reflect.factory.CoreFactory
-
Create an access to annotation value
- createAnnotationFieldAccess() - Method in interface spoon.reflect.factory.Factory
- createAnnotationFieldAccess() - Method in class spoon.reflect.factory.FactoryImpl
- createAnnotationFieldAccess() - Method in class spoon.support.DefaultCoreFactory
- createAnnotationMethod() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an annotation method.
- createAnnotationMethod() - Method in interface spoon.reflect.factory.Factory
- createAnnotationMethod() - Method in class spoon.reflect.factory.FactoryImpl
- createAnnotationMethod() - Method in class spoon.support.DefaultCoreFactory
- createAnnotationType() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an annotation type.
- createAnnotationType() - Method in interface spoon.reflect.factory.Factory
- createAnnotationType() - Method in class spoon.reflect.factory.FactoryImpl
- createAnnotationType() - Method in class spoon.support.DefaultCoreFactory
- createAnnotationType(String) - Method in interface spoon.reflect.factory.Factory
- createAnnotationType(String) - Method in class spoon.reflect.factory.FactoryImpl
- createAnnotationType(CtPackage, String) - Method in interface spoon.reflect.factory.Factory
- createAnnotationType(CtPackage, String) - Method in class spoon.reflect.factory.FactoryImpl
- createAnonymous(CtClass<?>, CtBlock<Void>) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates an anonymous executable (initializer block) in a target class).
- createAnonymous(CtClass<?>, CtBlock<Void>) - Method in interface spoon.reflect.factory.Factory
- createAnonymous(CtClass<?>, CtBlock<Void>) - Method in class spoon.reflect.factory.FactoryImpl
- createAnonymousExecutable() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an anonymous executable.
- createAnonymousExecutable() - Method in interface spoon.reflect.factory.Factory
- createAnonymousExecutable() - Method in class spoon.reflect.factory.FactoryImpl
- createAnonymousExecutable() - Method in class spoon.support.DefaultCoreFactory
- createArrayRead() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an array read access expression.
- createArrayRead() - Method in interface spoon.reflect.factory.Factory
- createArrayRead() - Method in class spoon.reflect.factory.FactoryImpl
- createArrayRead() - Method in class spoon.support.DefaultCoreFactory
- createArrayReference(String) - Method in interface spoon.reflect.factory.Factory
- createArrayReference(String) - Method in class spoon.reflect.factory.FactoryImpl
- createArrayReference(String) - Method in class spoon.reflect.factory.TypeFactory
-
Creates a reference to an array of given type.
- createArrayReference(CtType<T>) - Method in interface spoon.reflect.factory.Factory
- createArrayReference(CtType<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createArrayReference(CtType<T>) - Method in class spoon.reflect.factory.TypeFactory
-
Creates a reference to an array of given type.
- createArrayReference(CtTypeReference<?>, int) - Method in interface spoon.reflect.factory.Factory
- createArrayReference(CtTypeReference<?>, int) - Method in class spoon.reflect.factory.FactoryImpl
- createArrayReference(CtTypeReference<?>, int) - Method in class spoon.reflect.factory.TypeFactory
-
Creates a reference to a n-dimension array of given type.
- createArrayReference(CtTypeReference<T>) - Method in interface spoon.reflect.factory.Factory
- createArrayReference(CtTypeReference<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createArrayReference(CtTypeReference<T>) - Method in class spoon.reflect.factory.TypeFactory
-
Creates a reference to a one-dimension array of given type.
- createArrayTypeReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an array type reference.
- createArrayTypeReference() - Method in interface spoon.reflect.factory.Factory
- createArrayTypeReference() - Method in class spoon.reflect.factory.FactoryImpl
- createArrayTypeReference() - Method in class spoon.support.DefaultCoreFactory
- createArrayWrite() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an array write access expression.
- createArrayWrite() - Method in interface spoon.reflect.factory.Factory
- createArrayWrite() - Method in class spoon.reflect.factory.FactoryImpl
- createArrayWrite() - Method in class spoon.support.DefaultCoreFactory
- createAssert() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an
assert
statement. - createAssert() - Method in interface spoon.reflect.factory.Factory
- createAssert() - Method in class spoon.reflect.factory.FactoryImpl
- createAssert() - Method in class spoon.support.DefaultCoreFactory
- createAssignment() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an assignment expression.
- createAssignment() - Method in interface spoon.reflect.factory.Factory
- createAssignment() - Method in class spoon.reflect.factory.FactoryImpl
- createAssignment() - Method in class spoon.support.DefaultCoreFactory
- createBatchCompiler() - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- createBatchCompiler(SpoonModelBuilder.InputType...) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- createBinaryOperator() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a binary operator.
- createBinaryOperator() - Method in interface spoon.reflect.factory.Factory
- createBinaryOperator() - Method in class spoon.reflect.factory.FactoryImpl
- createBinaryOperator() - Method in class spoon.support.DefaultCoreFactory
- createBinaryOperator(CtExpression<?>, CtExpression<?>, BinaryOperatorKind) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a binary operator.
- createBinaryOperator(CtExpression<?>, CtExpression<?>, BinaryOperatorKind) - Method in interface spoon.reflect.factory.Factory
- createBinaryOperator(CtExpression<?>, CtExpression<?>, BinaryOperatorKind) - Method in class spoon.reflect.factory.FactoryImpl
- createBlock() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a block.
- createBlock() - Method in interface spoon.reflect.factory.Factory
- createBlock() - Method in class spoon.reflect.factory.FactoryImpl
- createBlock() - Method in class spoon.support.DefaultCoreFactory
- createBodyHolderSourcePosition(CompilationUnit, int, int, int, int, int, int, int, int, int[]) - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a body holder source position.
- createBodyHolderSourcePosition(CompilationUnit, int, int, int, int, int, int, int, int, int[]) - Method in interface spoon.reflect.factory.Factory
- createBodyHolderSourcePosition(CompilationUnit, int, int, int, int, int, int, int, int, int[]) - Method in class spoon.reflect.factory.FactoryImpl
- createBodyHolderSourcePosition(CompilationUnit, int, int, int, int, int, int, int, int, int[]) - Method in class spoon.support.DefaultCoreFactory
- createBreak() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
break
statement. - createBreak() - Method in interface spoon.reflect.factory.Factory
- createBreak() - Method in class spoon.reflect.factory.FactoryImpl
- createBreak() - Method in class spoon.support.DefaultCoreFactory
- createCase() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
case
clause. - createCase() - Method in interface spoon.reflect.factory.Factory
- createCase() - Method in class spoon.reflect.factory.FactoryImpl
- createCase() - Method in class spoon.support.DefaultCoreFactory
- createCatch() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
catch
clause. - createCatch() - Method in interface spoon.reflect.factory.Factory
- createCatch() - Method in class spoon.reflect.factory.FactoryImpl
- createCatch() - Method in class spoon.support.DefaultCoreFactory
- createCatchVariable() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a catch variable declaration statement.
- createCatchVariable() - Method in interface spoon.reflect.factory.Factory
- createCatchVariable() - Method in class spoon.reflect.factory.FactoryImpl
- createCatchVariable() - Method in class spoon.support.DefaultCoreFactory
- createCatchVariable(CtTypeReference<T>, String, ModifierKind...) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a catch variable declaration.
- createCatchVariable(CtTypeReference<T>, String, ModifierKind...) - Method in interface spoon.reflect.factory.Factory
- createCatchVariable(CtTypeReference<T>, String, ModifierKind...) - Method in class spoon.reflect.factory.FactoryImpl
- createCatchVariableReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a catch variable reference.
- createCatchVariableReference() - Method in interface spoon.reflect.factory.Factory
- createCatchVariableReference() - Method in class spoon.reflect.factory.FactoryImpl
- createCatchVariableReference() - Method in class spoon.support.DefaultCoreFactory
- createCatchVariableReference(CtCatchVariable<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a catch variable reference that points to an existing catch variable (strong referencing).
- createCatchVariableReference(CtCatchVariable<T>) - Method in interface spoon.reflect.factory.Factory
- createCatchVariableReference(CtCatchVariable<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createClass() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a class.
- createClass() - Method in interface spoon.reflect.factory.Factory
- createClass() - Method in class spoon.reflect.factory.FactoryImpl
- createClass() - Method in class spoon.support.DefaultCoreFactory
- createClass(String) - Method in interface spoon.reflect.factory.Factory
- createClass(String) - Method in class spoon.reflect.factory.FactoryImpl
- createClass(CtClass<?>, String) - Method in interface spoon.reflect.factory.Factory
- createClass(CtClass<?>, String) - Method in class spoon.reflect.factory.FactoryImpl
- createClass(CtPackage, String) - Method in interface spoon.reflect.factory.Factory
- createClass(CtPackage, String) - Method in class spoon.reflect.factory.FactoryImpl
- createClassAccess(CtTypeReference<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a class access expression of the form
C.class
. - createClassAccess(CtTypeReference<T>) - Method in interface spoon.reflect.factory.Factory
- createClassAccess(CtTypeReference<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createCodeSnippetExpression() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a code snippet expression.
- createCodeSnippetExpression() - Method in interface spoon.reflect.factory.Factory
- createCodeSnippetExpression() - Method in class spoon.reflect.factory.FactoryImpl
- createCodeSnippetExpression() - Method in class spoon.support.DefaultCoreFactory
- createCodeSnippetExpression(String) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a Code Snippet expression.
- createCodeSnippetExpression(String) - Method in interface spoon.reflect.factory.Factory
- createCodeSnippetExpression(String) - Method in class spoon.reflect.factory.FactoryImpl
- createCodeSnippetStatement() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a code snippet statement.
- createCodeSnippetStatement() - Method in interface spoon.reflect.factory.Factory
- createCodeSnippetStatement() - Method in class spoon.reflect.factory.FactoryImpl
- createCodeSnippetStatement() - Method in class spoon.support.DefaultCoreFactory
- createCodeSnippetStatement(String) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a Code Snippet statement.
- createCodeSnippetStatement(String) - Method in interface spoon.reflect.factory.Factory
- createCodeSnippetStatement(String) - Method in class spoon.reflect.factory.FactoryImpl
- createComment() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a comment.
- createComment() - Method in interface spoon.reflect.factory.Factory
- createComment() - Method in class spoon.reflect.factory.FactoryImpl
- createComment() - Method in class spoon.support.DefaultCoreFactory
- createComment(String, CtComment.CommentType) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a comment
- createComment(String, CtComment.CommentType) - Method in interface spoon.reflect.factory.Factory
- createComment(String, CtComment.CommentType) - Method in class spoon.reflect.factory.FactoryImpl
- createCompilationUnit() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a compilation unit.
- createCompilationUnit() - Method in interface spoon.reflect.factory.Factory
- createCompilationUnit() - Method in class spoon.reflect.factory.FactoryImpl
- createCompilationUnit() - Method in class spoon.support.DefaultCoreFactory
- createCompiler() - Method in class spoon.Launcher
- createCompiler() - Method in interface spoon.SpoonAPI
-
Creates a new Spoon compiler (for building the model)
- createCompiler(List<SpoonResource>) - Method in class spoon.Launcher
-
Creates a new Spoon Java compiler with a default factory and a list of input sources.
- createCompiler(Factory) - Method in class spoon.Launcher
-
Creates a new Spoon Java compiler in order to process and compile Java source code.
- createCompiler(Factory, List<SpoonResource>) - Method in class spoon.Launcher
- createCompiler(Factory, List<SpoonResource>, List<SpoonResource>) - Method in class spoon.Launcher
-
Creates a new Spoon Java compiler in order to process and compile Java source code.
- createCompoundSourcePosition(CompilationUnit, int, int, int, int, int[]) - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a compound source position.
- createCompoundSourcePosition(CompilationUnit, int, int, int, int, int[]) - Method in class spoon.support.DefaultCoreFactory
- createConditional() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a conditional expression (
boolExpr?ifTrue:ifFalse
). - createConditional() - Method in interface spoon.reflect.factory.Factory
- createConditional() - Method in class spoon.reflect.factory.FactoryImpl
- createConditional() - Method in class spoon.support.DefaultCoreFactory
- createConstructor() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a constructor.
- createConstructor() - Method in interface spoon.reflect.factory.Factory
- createConstructor() - Method in class spoon.reflect.factory.FactoryImpl
- createConstructor() - Method in class spoon.support.DefaultCoreFactory
- createConstructor(CtClass, Set<ModifierKind>, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>) - Method in interface spoon.reflect.factory.Factory
- createConstructor(CtClass, Set<ModifierKind>, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>) - Method in class spoon.reflect.factory.FactoryImpl
- createConstructor(CtClass, Set<ModifierKind>, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>, CtBlock) - Method in interface spoon.reflect.factory.Factory
- createConstructor(CtClass, Set<ModifierKind>, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>, CtBlock) - Method in class spoon.reflect.factory.FactoryImpl
- createConstructor(CtClass, CtConstructor<?>) - Method in interface spoon.reflect.factory.Factory
- createConstructor(CtClass, CtConstructor<?>) - Method in class spoon.reflect.factory.FactoryImpl
- createConstructor(CtClass, CtMethod<?>) - Method in interface spoon.reflect.factory.Factory
- createConstructor(CtClass, CtMethod<?>) - Method in class spoon.reflect.factory.FactoryImpl
- createConstructorCall() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a constructor call expression.
- createConstructorCall() - Method in interface spoon.reflect.factory.Factory
- createConstructorCall() - Method in class spoon.reflect.factory.FactoryImpl
- createConstructorCall() - Method in class spoon.support.DefaultCoreFactory
- createConstructorCall(CtTypeReference<T>, CtExpression<?>...) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a constructor call.
- createConstructorCall(CtTypeReference<T>, CtExpression<?>...) - Method in interface spoon.reflect.factory.Factory
- createConstructorCall(CtTypeReference<T>, CtExpression<?>...) - Method in class spoon.reflect.factory.FactoryImpl
- createContinue() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
continue
statement. - createContinue() - Method in interface spoon.reflect.factory.Factory
- createContinue() - Method in class spoon.reflect.factory.FactoryImpl
- createContinue() - Method in class spoon.support.DefaultCoreFactory
- createCtBlock(T) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a block.
- createCtBlock(T) - Method in interface spoon.reflect.factory.Factory
- createCtBlock(T) - Method in class spoon.reflect.factory.FactoryImpl
- createCtCatch(String, Class<? extends Throwable>, CtBlock<?>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a catch element.
- createCtCatch(String, Class<? extends Throwable>, CtBlock<?>) - Method in interface spoon.reflect.factory.Factory
- createCtCatch(String, Class<? extends Throwable>, CtBlock<?>) - Method in class spoon.reflect.factory.FactoryImpl
- createCtField(String, CtTypeReference<T>, String, ModifierKind...) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a field.
- createCtField(String, CtTypeReference<T>, String, ModifierKind...) - Method in interface spoon.reflect.factory.Factory
- createCtField(String, CtTypeReference<T>, String, ModifierKind...) - Method in class spoon.reflect.factory.FactoryImpl
- createCtPackageReference(Package) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a package reference.
- createCtPackageReference(Package) - Method in interface spoon.reflect.factory.Factory
- createCtPackageReference(Package) - Method in class spoon.reflect.factory.FactoryImpl
- createCtThrow(String) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a throw.
- createCtThrow(String) - Method in interface spoon.reflect.factory.Factory
- createCtThrow(String) - Method in class spoon.reflect.factory.FactoryImpl
- createCtTypeReference(Class<?>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a type reference.
- createCtTypeReference(Class<?>) - Method in interface spoon.reflect.factory.Factory
- createCtTypeReference(Class<?>) - Method in class spoon.reflect.factory.FactoryImpl
- createDeclarationSourcePosition(CompilationUnit, int, int, int, int, int, int, int[]) - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a declaration source position.
- createDeclarationSourcePosition(CompilationUnit, int, int, int, int, int, int, int[]) - Method in interface spoon.reflect.factory.Factory
- createDeclarationSourcePosition(CompilationUnit, int, int, int, int, int, int, int[]) - Method in class spoon.reflect.factory.FactoryImpl
- createDeclarationSourcePosition(CompilationUnit, int, int, int, int, int, int, int[]) - Method in class spoon.support.DefaultCoreFactory
- createDefault(CtClass<T>) - Method in class spoon.reflect.factory.ConstructorFactory
-
Create the default empty constructor.
- createDefault(CtClass<T>) - Method in interface spoon.reflect.factory.Factory
- createDefault(CtClass<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createDo() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
do
loop. - createDo() - Method in interface spoon.reflect.factory.Factory
- createDo() - Method in class spoon.reflect.factory.FactoryImpl
- createDo() - Method in class spoon.support.DefaultCoreFactory
- createElement(Class<? extends CtElement>) - Method in interface spoon.reflect.factory.Factory
- createElement(Class<? extends CtElement>) - Method in class spoon.reflect.factory.FactoryImpl
- createEnclosingHierarchy(CtType<?>) - Method in class spoon.support.visitor.ClassTypingContext
-
might be used to create custom chain of super type hierarchies
- createEnclosingHierarchy(CtTypeReference<?>) - Method in class spoon.support.visitor.ClassTypingContext
-
might be used to create custom chain of super type hierarchies
- createEnum() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an enum.
- createEnum() - Method in interface spoon.reflect.factory.Factory
- createEnum() - Method in class spoon.reflect.factory.FactoryImpl
- createEnum() - Method in class spoon.support.DefaultCoreFactory
- createEnum(String) - Method in interface spoon.reflect.factory.Factory
- createEnum(String) - Method in class spoon.reflect.factory.FactoryImpl
- createEnum(CtPackage, String) - Method in interface spoon.reflect.factory.Factory
- createEnum(CtPackage, String) - Method in class spoon.reflect.factory.FactoryImpl
- createEnumValue() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an enum value.
- createEnumValue() - Method in interface spoon.reflect.factory.Factory
- createEnumValue() - Method in class spoon.reflect.factory.FactoryImpl
- createEnumValue() - Method in class spoon.support.DefaultCoreFactory
- createEnvironment() - Method in class spoon.Launcher
- createEnvironment() - Method in interface spoon.SpoonAPI
-
Creates a new Spoon environment (may be overridden)
- createExecutableReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an executable reference.
- createExecutableReference() - Method in interface spoon.reflect.factory.Factory
- createExecutableReference() - Method in class spoon.reflect.factory.FactoryImpl
- createExecutableReference() - Method in class spoon.support.DefaultCoreFactory
- createExecutableReferenceExpression() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a new executable reference expression.
- createExecutableReferenceExpression() - Method in interface spoon.reflect.factory.Factory
- createExecutableReferenceExpression() - Method in class spoon.reflect.factory.FactoryImpl
- createExecutableReferenceExpression() - Method in class spoon.support.DefaultCoreFactory
- createExpressionCannotBeRemovedIssue(CtInvocation<?>, CtExpression<?>) - Method in class spoon.refactoring.CtParameterRemoveRefactoring
-
Override this method to get access to details about this refactoring issue.
- createFactory() - Method in class spoon.Launcher
- createFactory() - Method in interface spoon.SpoonAPI
-
Creates a new Spoon factory (may be overridden)
- createFactory() - Static method in class spoon.testing.utils.ModelUtils
- createField() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a field.
- createField() - Method in interface spoon.reflect.factory.Factory
- createField() - Method in class spoon.reflect.factory.FactoryImpl
- createField() - Method in class spoon.support.DefaultCoreFactory
- createField(CtType<?>, Set<ModifierKind>, CtTypeReference, String) - Method in interface spoon.reflect.factory.Factory
- createField(CtType<?>, Set<ModifierKind>, CtTypeReference, String) - Method in class spoon.reflect.factory.FactoryImpl
- createField(CtType<?>, Set<ModifierKind>, CtTypeReference, String, CtExpression) - Method in interface spoon.reflect.factory.Factory
- createField(CtType<?>, Set<ModifierKind>, CtTypeReference, String, CtExpression) - Method in class spoon.reflect.factory.FactoryImpl
- createField(CtType<?>, CtField) - Method in interface spoon.reflect.factory.Factory
- createField(CtType<?>, CtField) - Method in class spoon.reflect.factory.FactoryImpl
- createFieldAccess(CtVariableReference<T>, CtExpression<?>, boolean) - Method in class spoon.support.compiler.jdt.JDTTreeBuilderHelper
-
Creates variable access from a
CtVariableReference
. - createFieldRead() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a field read access.
- createFieldRead() - Method in interface spoon.reflect.factory.Factory
- createFieldRead() - Method in class spoon.reflect.factory.FactoryImpl
- createFieldRead() - Method in class spoon.support.DefaultCoreFactory
- createFieldReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a field reference.
- createFieldReference() - Method in interface spoon.reflect.factory.Factory
- createFieldReference() - Method in class spoon.reflect.factory.FactoryImpl
- createFieldReference() - Method in class spoon.support.DefaultCoreFactory
- createFieldWrite() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a field write access.
- createFieldWrite() - Method in interface spoon.reflect.factory.Factory
- createFieldWrite() - Method in class spoon.reflect.factory.FactoryImpl
- createFieldWrite() - Method in class spoon.support.DefaultCoreFactory
- createFile(File) - Static method in class spoon.compiler.SpoonResourceHelper
-
Creates the
SpoonFile
corresponding to the given file. - createFolder(File) - Static method in class spoon.compiler.SpoonResourceHelper
-
Creates the
SpoonFolder
corresponding to the given file. - createFor() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
for
loop. - createFor() - Method in interface spoon.reflect.factory.Factory
- createFor() - Method in class spoon.reflect.factory.FactoryImpl
- createFor() - Method in class spoon.support.DefaultCoreFactory
- createForEach() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
foreach
loop. - createForEach() - Method in interface spoon.reflect.factory.Factory
- createForEach() - Method in class spoon.reflect.factory.FactoryImpl
- createForEach() - Method in class spoon.support.DefaultCoreFactory
- createIf() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an
if
statement. - createIf() - Method in interface spoon.reflect.factory.Factory
- createIf() - Method in class spoon.reflect.factory.FactoryImpl
- createIf() - Method in class spoon.support.DefaultCoreFactory
- createImport() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an import.
- createImport() - Method in class spoon.support.DefaultCoreFactory
- createImport(CtReference) - Method in interface spoon.reflect.factory.Factory
- createImport(CtReference) - Method in class spoon.reflect.factory.FactoryImpl
- createImport(CtReference) - Method in class spoon.reflect.factory.TypeFactory
-
Creates an import declaration.
- createInlineComment(String) - Method in class spoon.reflect.factory.CodeFactory
-
Creates an inline comment
- createInlineComment(String) - Method in interface spoon.reflect.factory.Factory
- createInlineComment(String) - Method in class spoon.reflect.factory.FactoryImpl
- createInputHolder() - Method in interface spoon.pattern.internal.parameter.ParameterComputer
- createInputHolder() - Method in class spoon.pattern.internal.parameter.SimpleNameOfTypeReferenceParameterComputer
- createInterface() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an interface.
- createInterface() - Method in interface spoon.reflect.factory.Factory
- createInterface() - Method in class spoon.reflect.factory.FactoryImpl
- createInterface() - Method in class spoon.support.DefaultCoreFactory
- createInterface(String) - Method in interface spoon.reflect.factory.Factory
- createInterface(String) - Method in class spoon.reflect.factory.FactoryImpl
- createInterface(CtPackage, String) - Method in interface spoon.reflect.factory.Factory
- createInterface(CtPackage, String) - Method in class spoon.reflect.factory.FactoryImpl
- createInterface(CtType, String) - Method in interface spoon.reflect.factory.Factory
- createInterface(CtType, String) - Method in class spoon.reflect.factory.FactoryImpl
- createIntersectionTypeReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an intersection type reference.
- createIntersectionTypeReference() - Method in interface spoon.reflect.factory.Factory
- createIntersectionTypeReference() - Method in class spoon.reflect.factory.FactoryImpl
- createIntersectionTypeReference() - Method in class spoon.support.DefaultCoreFactory
- createIntersectionTypeReferenceWithBounds(List<CtTypeReference<?>>) - Method in interface spoon.reflect.factory.Factory
- createIntersectionTypeReferenceWithBounds(List<CtTypeReference<?>>) - Method in class spoon.reflect.factory.FactoryImpl
- createIntersectionTypeReferenceWithBounds(List<CtTypeReference<?>>) - Method in class spoon.reflect.factory.TypeFactory
-
Creates an intersection type reference.
- createInvisibleArrayConstructor() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an invisible array constructor.
- createInvisibleArrayConstructor() - Method in interface spoon.reflect.factory.Factory
- createInvisibleArrayConstructor() - Method in class spoon.reflect.factory.FactoryImpl
- createInvisibleArrayConstructor() - Method in class spoon.support.DefaultCoreFactory
- createInvocation() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an invocation expression.
- createInvocation() - Method in interface spoon.reflect.factory.Factory
- createInvocation() - Method in class spoon.reflect.factory.FactoryImpl
- createInvocation() - Method in class spoon.support.DefaultCoreFactory
- createInvocation(CtExpression<?>, CtExecutableReference<T>, List<CtExpression<?>>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates an invocation (can be a statement or an expression).
- createInvocation(CtExpression<?>, CtExecutableReference<T>, List<CtExpression<?>>) - Method in interface spoon.reflect.factory.Factory
- createInvocation(CtExpression<?>, CtExecutableReference<T>, List<CtExpression<?>>) - Method in class spoon.reflect.factory.FactoryImpl
- createInvocation(CtExpression<?>, CtExecutableReference<T>, CtExpression<?>...) - Method in class spoon.reflect.factory.CodeFactory
-
Creates an invocation (can be a statement or an expression).
- createInvocation(CtExpression<?>, CtExecutableReference<T>, CtExpression<?>...) - Method in interface spoon.reflect.factory.Factory
- createInvocation(CtExpression<?>, CtExecutableReference<T>, CtExpression<?>...) - Method in class spoon.reflect.factory.FactoryImpl
- createJavaDoc() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a javadoc comment.
- createJavaDoc() - Method in interface spoon.reflect.factory.Factory
- createJavaDoc() - Method in class spoon.reflect.factory.FactoryImpl
- createJavaDoc() - Method in class spoon.support.DefaultCoreFactory
- createJavaDocTag() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a javadoc tag.
- createJavaDocTag() - Method in interface spoon.reflect.factory.Factory
- createJavaDocTag() - Method in class spoon.reflect.factory.FactoryImpl
- createJavaDocTag() - Method in class spoon.support.DefaultCoreFactory
- createJavaDocTag(String, CtJavaDocTag.TagType) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a javadoc tag
- createJavaDocTag(String, CtJavaDocTag.TagType) - Method in interface spoon.reflect.factory.Factory
- createJavaDocTag(String, CtJavaDocTag.TagType) - Method in class spoon.reflect.factory.FactoryImpl
- createJavaDocTag(String, CtJavaDocTag.TagType, String) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a javadoc tag
- createJavaDocTag(String, CtJavaDocTag.TagType, String) - Method in interface spoon.reflect.factory.Factory
- createJavaDocTag(String, CtJavaDocTag.TagType, String) - Method in class spoon.reflect.factory.FactoryImpl
- createJavaFile(CtType<?>) - Method in class spoon.support.JavaOutputProcessor
-
Creates the Java file associated to the given element.
- createLambda() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a new anonymous method expression.
- createLambda() - Method in interface spoon.reflect.factory.Factory
- createLambda() - Method in class spoon.reflect.factory.FactoryImpl
- createLambda() - Method in class spoon.support.DefaultCoreFactory
- createLiteral() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a literal expression.
- createLiteral() - Method in interface spoon.reflect.factory.Factory
- createLiteral() - Method in class spoon.reflect.factory.FactoryImpl
- createLiteral() - Method in class spoon.support.DefaultCoreFactory
- createLiteral(T) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a literal with a given value.
- createLiteral(T) - Method in interface spoon.reflect.factory.Factory
- createLiteral(T) - Method in class spoon.reflect.factory.FactoryImpl
- createLiteralArray(T[]) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a one-dimension array that must only contain literals.
- createLiteralArray(T[]) - Method in interface spoon.reflect.factory.Factory
- createLiteralArray(T[]) - Method in class spoon.reflect.factory.FactoryImpl
- createLocalVariable() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a local variable declaration statement.
- createLocalVariable() - Method in interface spoon.reflect.factory.Factory
- createLocalVariable() - Method in class spoon.reflect.factory.FactoryImpl
- createLocalVariable() - Method in class spoon.support.DefaultCoreFactory
- createLocalVariable(CtTypeReference<T>, String, CtExpression<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a local variable declaration.
- createLocalVariable(CtTypeReference<T>, String, CtExpression<T>) - Method in interface spoon.reflect.factory.Factory
- createLocalVariable(CtTypeReference<T>, String, CtExpression<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createLocalVariableReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a local variable reference.
- createLocalVariableReference() - Method in interface spoon.reflect.factory.Factory
- createLocalVariableReference() - Method in class spoon.reflect.factory.FactoryImpl
- createLocalVariableReference() - Method in class spoon.support.DefaultCoreFactory
- createLocalVariableReference(CtLocalVariable<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a local variable reference that points to an existing local variable (strong referencing).
- createLocalVariableReference(CtLocalVariable<T>) - Method in interface spoon.reflect.factory.Factory
- createLocalVariableReference(CtLocalVariable<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createLocalVariableReference(CtTypeReference<T>, String) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a local variable reference with its name an type (weak referencing).
- createLocalVariableReference(CtTypeReference<T>, String) - Method in interface spoon.reflect.factory.Factory
- createLocalVariableReference(CtTypeReference<T>, String) - Method in class spoon.reflect.factory.FactoryImpl
- createMethod() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a method.
- createMethod() - Method in interface spoon.reflect.factory.Factory
- createMethod() - Method in class spoon.reflect.factory.FactoryImpl
- createMethod() - Method in class spoon.support.DefaultCoreFactory
- createMethod(CtClass<?>, Set<ModifierKind>, CtTypeReference, String, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>, CtBlock) - Method in interface spoon.reflect.factory.Factory
- createMethod(CtClass<?>, Set<ModifierKind>, CtTypeReference, String, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>, CtBlock) - Method in class spoon.reflect.factory.FactoryImpl
- createMethod(CtType<?>, Set<ModifierKind>, CtTypeReference, String, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>) - Method in interface spoon.reflect.factory.Factory
- createMethod(CtType<?>, Set<ModifierKind>, CtTypeReference, String, List<CtParameter<?>>, Set<CtTypeReference<? extends Throwable>>) - Method in class spoon.reflect.factory.FactoryImpl
- createMethod(CtType<?>, CtMethod, boolean) - Method in interface spoon.reflect.factory.Factory
- createMethod(CtType<?>, CtMethod, boolean) - Method in class spoon.reflect.factory.FactoryImpl
- createModule() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a Java 9 module
- createModule() - Method in class spoon.support.DefaultCoreFactory
- createModule(String) - Method in interface spoon.reflect.factory.Factory
- createModule(String) - Method in class spoon.reflect.factory.FactoryImpl
- createModuleReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a reference to a Java 9 module
- createModuleReference() - Method in class spoon.support.DefaultCoreFactory
- createModuleReference(CtModule) - Method in interface spoon.reflect.factory.Factory
- createModuleReference(CtModule) - Method in class spoon.reflect.factory.FactoryImpl
- createModuleRequirement() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a "requires" directive for a Java 9 module file
- createModuleRequirement() - Method in class spoon.support.DefaultCoreFactory
- createModuleRequirement(CtModuleReference) - Method in interface spoon.reflect.factory.Factory
- createModuleRequirement(CtModuleReference) - Method in class spoon.reflect.factory.FactoryImpl
- createModuleRequirement(CtModuleReference) - Method in class spoon.reflect.factory.ModuleFactory
- createNameConflictIssue(CtVariable<?>) - Method in class spoon.refactoring.CtRenameLocalVariableRefactoring
-
Override this method to get access to details about this refactoring issue
- createNameConflictIssue(CtVariable<?>, CtVariableReference<?>) - Method in class spoon.refactoring.CtRenameLocalVariableRefactoring
-
Override this method to get access to details about this refactoring issue
- createNewArray() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a new array expression.
- createNewArray() - Method in interface spoon.reflect.factory.Factory
- createNewArray() - Method in class spoon.reflect.factory.FactoryImpl
- createNewArray() - Method in class spoon.support.DefaultCoreFactory
- createNewClass() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a new anonymous class expression.
- createNewClass() - Method in interface spoon.reflect.factory.Factory
- createNewClass() - Method in class spoon.reflect.factory.FactoryImpl
- createNewClass() - Method in class spoon.support.DefaultCoreFactory
- createNewClass(CtType<?>, CtExpression<?>...) - Method in interface spoon.reflect.factory.Factory
-
Creates an anonymous class
- createNewClass(CtType<?>, CtExpression<?>...) - Method in class spoon.reflect.factory.FactoryImpl
- createNewClass(CtType<T>, CtExpression<?>...) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a new anonymous class.
- createOperatorAssignment() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a new operator assignment (like +=).
- createOperatorAssignment() - Method in interface spoon.reflect.factory.Factory
- createOperatorAssignment() - Method in class spoon.reflect.factory.FactoryImpl
- createOperatorAssignment() - Method in class spoon.support.DefaultCoreFactory
- createOutputWriter() - Method in class spoon.Launcher
- createPackage() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a package.
- createPackage() - Method in interface spoon.reflect.factory.Factory
- createPackage() - Method in class spoon.reflect.factory.FactoryImpl
- createPackage() - Method in class spoon.support.DefaultCoreFactory
- createPackage(CtPackage, String) - Method in interface spoon.reflect.factory.Factory
- createPackage(CtPackage, String) - Method in class spoon.reflect.factory.FactoryImpl
- createPackageDeclaration() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a package declaration.
- createPackageDeclaration() - Method in class spoon.support.DefaultCoreFactory
- createPackageDeclaration(CtPackageReference) - Method in interface spoon.reflect.factory.Factory
- createPackageDeclaration(CtPackageReference) - Method in class spoon.reflect.factory.FactoryImpl
- createPackageDeclaration(CtPackageReference) - Method in class spoon.reflect.factory.PackageFactory
-
Creates a package declaration of a package.
- createPackageExport() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a "export" directive for a Java 9 module file
- createPackageExport() - Method in class spoon.support.DefaultCoreFactory
- createPackageExport(CtPackageReference) - Method in interface spoon.reflect.factory.Factory
- createPackageExport(CtPackageReference) - Method in class spoon.reflect.factory.FactoryImpl
- createPackageExport(CtPackageReference) - Method in class spoon.reflect.factory.ModuleFactory
- createPackageReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a package reference.
- createPackageReference() - Method in interface spoon.reflect.factory.Factory
- createPackageReference() - Method in class spoon.reflect.factory.FactoryImpl
- createPackageReference() - Method in class spoon.support.DefaultCoreFactory
- createParameter() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a parameter.
- createParameter() - Method in interface spoon.reflect.factory.Factory
- createParameter() - Method in class spoon.reflect.factory.FactoryImpl
- createParameter() - Method in class spoon.support.DefaultCoreFactory
- createParameter(CtExecutable<?>, CtTypeReference<T>, String) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates a new parameter.
- createParameter(CtExecutable<?>, CtTypeReference<T>, String) - Method in interface spoon.reflect.factory.Factory
- createParameter(CtExecutable<?>, CtTypeReference<T>, String) - Method in class spoon.reflect.factory.FactoryImpl
- createParameterReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a parameter reference.
- createParameterReference() - Method in interface spoon.reflect.factory.Factory
- createParameterReference() - Method in class spoon.reflect.factory.FactoryImpl
- createParameterReference() - Method in class spoon.support.DefaultCoreFactory
- createParameterReference(CtParameter<T>) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates a parameter reference from an existing parameter.
- createParameterReference(CtParameter<T>) - Method in interface spoon.reflect.factory.Factory
- createParameterReference(CtParameter<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createParameterUsedIssue(CtParameter<?>, CtParameterReference<?>) - Method in class spoon.refactoring.CtParameterRemoveRefactoring
-
Override this method to get access to details about this refactoring issue
- createPartialEvaluator() - Method in class spoon.reflect.factory.EvalFactory
-
Creates a partial evaluator on the Spoon meta-model.
- createPartialEvaluator() - Method in interface spoon.reflect.factory.Factory
- createPartialEvaluator() - Method in class spoon.reflect.factory.FactoryImpl
- createPartialSourcePosition(CompilationUnit) - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a source position that points to the given compilation unit
- createPartialSourcePosition(CompilationUnit) - Method in interface spoon.reflect.factory.Factory
- createPartialSourcePosition(CompilationUnit) - Method in class spoon.reflect.factory.FactoryImpl
- createPartialSourcePosition(CompilationUnit) - Method in class spoon.support.DefaultCoreFactory
- createPrettyPrinter() - Method in interface spoon.compiler.Environment
-
Creates the default pretty-printer.
- createPrettyPrinter() - Method in class spoon.Launcher
- createPrettyPrinter() - Method in class spoon.support.StandardEnvironment
- createPrettyPrinterAutoImport() - Method in interface spoon.compiler.Environment
-
Creates a pretty-printer that automatically imports used types and turns fully qualified type names into simply qualified names.
- createPrettyPrinterAutoImport() - Method in class spoon.support.StandardEnvironment
- createProvidedService() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a "provides" directive for a Java 9 module file
- createProvidedService() - Method in class spoon.support.DefaultCoreFactory
- createProvidedService(CtTypeReference) - Method in interface spoon.reflect.factory.Factory
- createProvidedService(CtTypeReference) - Method in class spoon.reflect.factory.FactoryImpl
- createProvidedService(CtTypeReference) - Method in class spoon.reflect.factory.ModuleFactory
- createQuery() - Method in interface spoon.reflect.factory.Factory
- createQuery() - Method in class spoon.reflect.factory.FactoryImpl
- createQuery() - Method in class spoon.reflect.factory.QueryFactory
-
Creates a unbound query.
- createQuery(Iterable<?>) - Method in interface spoon.reflect.factory.Factory
- createQuery(Iterable<?>) - Method in class spoon.reflect.factory.FactoryImpl
- createQuery(Iterable<?>) - Method in class spoon.reflect.factory.QueryFactory
-
Creates a bound query.
- createQuery(Object) - Method in interface spoon.reflect.factory.Factory
- createQuery(Object) - Method in class spoon.reflect.factory.FactoryImpl
- createQuery(Object) - Method in class spoon.reflect.factory.QueryFactory
-
Creates a bound query.
- createQuery(Object...) - Method in interface spoon.reflect.factory.Factory
- createQuery(Object[]) - Method in class spoon.reflect.factory.FactoryImpl
- createQuery(Object...) - Method in class spoon.reflect.factory.QueryFactory
-
Creates a bound query with an optional number of inputs elements to the query (see
CtQuery.setInput(Object...)
) - createRecord() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a record.
- createRecord() - Method in interface spoon.reflect.factory.Factory
- createRecord() - Method in class spoon.reflect.factory.FactoryImpl
- createRecord() - Method in class spoon.support.DefaultCoreFactory
- createRecordComponent() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a record component.
- createRecordComponent() - Method in interface spoon.reflect.factory.Factory
- createRecordComponent() - Method in class spoon.reflect.factory.FactoryImpl
- createRecordComponent() - Method in class spoon.support.DefaultCoreFactory
- createReference(Class<T>) - Method in class spoon.reflect.factory.TypeFactory
- createReference(Class<T>, boolean) - Method in class spoon.reflect.factory.TypeFactory
-
Creates a reference to a simple type
- createReference(Package) - Method in class spoon.reflect.factory.PackageFactory
-
Creates a reference to a package by using its Java runtime representation.
- createReference(Constructor<T>) - Method in class spoon.reflect.factory.ConstructorFactory
-
Creates a constructor reference from an actual constructor.
- createReference(Field) - Method in class spoon.reflect.factory.FieldFactory
-
Creates a field reference from a
java.lang.reflect
field. - createReference(Method) - Method in class spoon.reflect.factory.MethodFactory
-
Creates a method reference from an actual method.
- createReference(String) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates an executable reference from its signature, as defined by the executable reference's toString.
- createReference(String) - Method in interface spoon.reflect.factory.Factory
- createReference(String) - Method in class spoon.reflect.factory.FactoryImpl
- createReference(String) - Method in class spoon.reflect.factory.FieldFactory
-
Creates a field reference from its signature, as defined by the field reference's toString.
- createReference(String) - Method in class spoon.reflect.factory.PackageFactory
-
Creates a reference to a package.
- createReference(String) - Method in class spoon.reflect.factory.TypeFactory
-
Create a reference to a simple type
- createReference(CtConstructor<T>) - Method in class spoon.reflect.factory.ConstructorFactory
-
Creates a constructor reference from an existing constructor.
- createReference(CtExecutable<T>) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates an executable reference from an existing executable.
- createReference(CtField<T>) - Method in class spoon.reflect.factory.FieldFactory
-
Creates a field reference from an existing field.
- createReference(CtMethod<T>) - Method in class spoon.reflect.factory.MethodFactory
-
Creates a method reference.
- createReference(CtModule) - Method in class spoon.reflect.factory.ModuleFactory
- createReference(CtPackage) - Method in class spoon.reflect.factory.PackageFactory
-
Creates a reference to an existing package.
- createReference(CtType<T>) - Method in class spoon.reflect.factory.TypeFactory
-
Create a reference to a simple type
- createReference(CtType<T>, boolean) - Method in class spoon.reflect.factory.TypeFactory
- createReference(CtTypeParameter) - Method in class spoon.reflect.factory.TypeFactory
-
Create a reference to a simple type
- createReference(CtTypeReference<?>, boolean, CtTypeReference<T>, String, List<CtTypeReference<?>>) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates an executable reference.
- createReference(CtTypeReference<?>, boolean, CtTypeReference<T>, String, CtTypeReference<?>...) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates an executable reference.
- createReference(CtTypeReference<?>, CtTypeReference<T>, String) - Method in class spoon.reflect.factory.FieldFactory
-
Creates a field reference.
- createReference(CtTypeReference<?>, CtTypeReference<T>, String, List<CtTypeReference<?>>) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates an executable reference.
- createReference(CtTypeReference<?>, CtTypeReference<T>, String, CtTypeReference<?>...) - Method in class spoon.reflect.factory.ExecutableFactory
-
Creates an executable reference.
- createReference(CtTypeReference<T>, CtExpression<?>...) - Method in class spoon.reflect.factory.ConstructorFactory
-
Creates a constructor reference.
- createReferences(List<Class<?>>) - Method in interface spoon.reflect.factory.Factory
- createReferences(List<Class<?>>) - Method in class spoon.reflect.factory.FactoryImpl
- createReferences(List<Class<?>>) - Method in class spoon.reflect.factory.TypeFactory
-
Creates a collection of type references from a collection of classes.
- createResource(File) - Static method in class spoon.compiler.SpoonResourceHelper
-
Creates the
SpoonResource
corresponding to the given file. - createReturn() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
return
statement. - createReturn() - Method in interface spoon.reflect.factory.Factory
- createReturn() - Method in class spoon.reflect.factory.FactoryImpl
- createReturn() - Method in class spoon.support.DefaultCoreFactory
- createScanner() - Method in class spoon.reflect.visitor.ForceFullyQualifiedProcessor
- createScanner() - Method in class spoon.reflect.visitor.ForceImportProcessor
- createScanner() - Method in class spoon.reflect.visitor.ImportCleaner
- createScanner() - Method in class spoon.reflect.visitor.ImportConflictDetector
- createScannerListener() - Method in class spoon.reflect.visitor.ForceImportProcessor
- createSimplyQualifiedReference(String) - Method in interface spoon.reflect.factory.Factory
- createSimplyQualifiedReference(String) - Method in class spoon.reflect.factory.FactoryImpl
- createSimplyQualifiedReference(String) - Method in class spoon.reflect.factory.TypeFactory
-
Create a reference to a simple type, setting the beginning of its fully qualified name as implicit
- createSourceFragmentsFrom(CtElement) - Static method in class spoon.support.sniper.internal.ElementSourceFragment
-
Builds a tree of source fragments for `element` and all its children, based on the source positions of each element
- createSourcePosition(CompilationUnit, int, int, int[]) - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a source position.
- createSourcePosition(CompilationUnit, int, int, int[]) - Method in interface spoon.reflect.factory.Factory
- createSourcePosition(CompilationUnit, int, int, int[]) - Method in class spoon.reflect.factory.FactoryImpl
- createSourcePosition(CompilationUnit, int, int, int[]) - Method in class spoon.support.DefaultCoreFactory
- createStatementList() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a statement list.
- createStatementList() - Method in interface spoon.reflect.factory.Factory
- createStatementList() - Method in class spoon.reflect.factory.FactoryImpl
- createStatementList() - Method in class spoon.support.DefaultCoreFactory
- createStatementList(CtBlock<R>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a new statement list from an existing block.
- createStatementList(CtBlock<R>) - Method in interface spoon.reflect.factory.Factory
- createStatementList(CtBlock<R>) - Method in class spoon.reflect.factory.FactoryImpl
- createSuperAccess() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an access expression to super.
- createSuperAccess() - Method in interface spoon.reflect.factory.Factory
- createSuperAccess() - Method in class spoon.reflect.factory.FactoryImpl
- createSuperAccess() - Method in class spoon.support.DefaultCoreFactory
- createSwitch() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
switch
statement. - createSwitch() - Method in interface spoon.reflect.factory.Factory
- createSwitch() - Method in class spoon.reflect.factory.FactoryImpl
- createSwitch() - Method in class spoon.support.DefaultCoreFactory
- createSwitchExpression() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
switch
expression. - createSwitchExpression() - Method in interface spoon.reflect.factory.Factory
- createSwitchExpression() - Method in class spoon.reflect.factory.FactoryImpl
- createSwitchExpression() - Method in class spoon.support.DefaultCoreFactory
- createSynchronized() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
synchronized
statement. - createSynchronized() - Method in interface spoon.reflect.factory.Factory
- createSynchronized() - Method in class spoon.reflect.factory.FactoryImpl
- createSynchronized() - Method in class spoon.support.DefaultCoreFactory
- createTextBlock() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a TextBlock String Literal
- createTextBlock() - Method in interface spoon.reflect.factory.Factory
- createTextBlock() - Method in class spoon.reflect.factory.FactoryImpl
- createTextBlock() - Method in class spoon.support.DefaultCoreFactory
- createTextBlock(String) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a TextBlock with the given string value.
- createTextBlock(String) - Method in interface spoon.reflect.factory.Factory
- createTextBlock(String) - Method in class spoon.reflect.factory.FactoryImpl
- createThisAccess() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an access expression to this.
- createThisAccess() - Method in interface spoon.reflect.factory.Factory
- createThisAccess() - Method in class spoon.reflect.factory.FactoryImpl
- createThisAccess() - Method in class spoon.support.DefaultCoreFactory
- createThisAccess(CtTypeReference<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates an explicit access to a
this
variable (of the formtype.this
). - createThisAccess(CtTypeReference<T>) - Method in interface spoon.reflect.factory.Factory
- createThisAccess(CtTypeReference<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createThisAccess(CtTypeReference<T>, boolean) - Method in class spoon.reflect.factory.CodeFactory
-
Creates an access to a
this
variable (of the formtype.this
). - createThisAccess(CtTypeReference<T>, boolean) - Method in interface spoon.reflect.factory.Factory
- createThisAccess(CtTypeReference<T>, boolean) - Method in class spoon.reflect.factory.FactoryImpl
- createThrow() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
throw
statement. - createThrow() - Method in interface spoon.reflect.factory.Factory
- createThrow() - Method in class spoon.reflect.factory.FactoryImpl
- createThrow() - Method in class spoon.support.DefaultCoreFactory
- createTry() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
try
block. - createTry() - Method in interface spoon.reflect.factory.Factory
- createTry() - Method in class spoon.reflect.factory.FactoryImpl
- createTry() - Method in class spoon.support.DefaultCoreFactory
- createTryWithResource() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
try
with resource block. - createTryWithResource() - Method in interface spoon.reflect.factory.Factory
- createTryWithResource() - Method in class spoon.reflect.factory.FactoryImpl
- createTryWithResource() - Method in class spoon.support.DefaultCoreFactory
- createTypeAccess() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a type access expression.
- createTypeAccess() - Method in interface spoon.reflect.factory.Factory
- createTypeAccess() - Method in class spoon.reflect.factory.FactoryImpl
- createTypeAccess() - Method in class spoon.support.DefaultCoreFactory
- createTypeAccess(CtTypeReference<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a accessed type.
- createTypeAccess(CtTypeReference<T>) - Method in interface spoon.reflect.factory.Factory
- createTypeAccess(CtTypeReference<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createTypeAccess(CtTypeReference<T>, boolean) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a accessed type.
- createTypeAccess(CtTypeReference<T>, boolean) - Method in interface spoon.reflect.factory.Factory
- createTypeAccess(CtTypeReference<T>, boolean) - Method in class spoon.reflect.factory.FactoryImpl
- createTypeAccessWithoutCloningReference(CtTypeReference<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a accessed type, see
CodeFactory.createTypeAccess(CtTypeReference)
for details. - createTypeAccessWithoutCloningReference(CtTypeReference<T>) - Method in interface spoon.reflect.factory.Factory
- createTypeAccessWithoutCloningReference(CtTypeReference<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createTypeAdapter(CtFormalTypeDeclarer) - Method in interface spoon.reflect.factory.Factory
- createTypeAdapter(CtFormalTypeDeclarer) - Method in class spoon.reflect.factory.FactoryImpl
- createTypeAdapter(CtFormalTypeDeclarer) - Method in class spoon.reflect.factory.TypeFactory
-
Create a
GenericTypeAdapter
for adapting of formal type parameters from any compatible context to the context of provided `formalTypeDeclarer` - createTypeFromTemplate(String, CtType<?>, Map<String, Object>) - Static method in class spoon.template.Substitution
-
Generates a type (class, interface, enum, ...) from the template model `templateOfType` by by substituting all the template parameters by their values.
- createTypeMemberWildcardImportReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Create a wildcard reference to a type member, used in a static import
- createTypeMemberWildcardImportReference() - Method in class spoon.support.DefaultCoreFactory
- createTypeMemberWildcardImportReference(CtTypeReference) - Method in class spoon.reflect.factory.FactoryImpl
- createTypeMemberWildcardImportReference(CtTypeReference) - Method in class spoon.reflect.factory.TypeFactory
-
Create a wildcard reference to a simple type
- createTypeMemberWildcardImportReference(CtTypeReference<?>) - Method in interface spoon.reflect.factory.Factory
- createTypeParameter() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a type parameter declaration.
- createTypeParameter() - Method in interface spoon.reflect.factory.Factory
- createTypeParameter() - Method in class spoon.reflect.factory.FactoryImpl
- createTypeParameter() - Method in class spoon.support.DefaultCoreFactory
- createTypeParameterReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a type parameter reference.
- createTypeParameterReference() - Method in interface spoon.reflect.factory.Factory
- createTypeParameterReference() - Method in class spoon.reflect.factory.FactoryImpl
- createTypeParameterReference() - Method in class spoon.support.DefaultCoreFactory
- createTypeParameterReference(String) - Method in interface spoon.reflect.factory.Factory
- createTypeParameterReference(String) - Method in class spoon.reflect.factory.FactoryImpl
- createTypeParameterReference(String) - Method in class spoon.reflect.factory.TypeFactory
-
Creates a type parameter reference with no bounds.
- createTypePattern() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a Type Pattern
- createTypePattern() - Method in class spoon.support.DefaultCoreFactory
- createTypeReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a type reference.
- createTypeReference() - Method in interface spoon.reflect.factory.Factory
- createTypeReference() - Method in class spoon.reflect.factory.FactoryImpl
- createTypeReference() - Method in class spoon.support.DefaultCoreFactory
- createUnaryOperator() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a unary operator expression.
- createUnaryOperator() - Method in interface spoon.reflect.factory.Factory
- createUnaryOperator() - Method in class spoon.reflect.factory.FactoryImpl
- createUnaryOperator() - Method in class spoon.support.DefaultCoreFactory
- createUnboundVariableReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an unbound variable used in noclasspath.
- createUnboundVariableReference() - Method in interface spoon.reflect.factory.Factory
- createUnboundVariableReference() - Method in class spoon.reflect.factory.FactoryImpl
- createUnboundVariableReference() - Method in class spoon.support.DefaultCoreFactory
- createUnresolvedImport() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates an unresolved import.
- createUnresolvedImport() - Method in class spoon.support.DefaultCoreFactory
- createUnresolvedImport(String, boolean) - Method in interface spoon.reflect.factory.Factory
- createUnresolvedImport(String, boolean) - Method in class spoon.reflect.factory.FactoryImpl
- createUnresolvedImport(String, boolean) - Method in class spoon.reflect.factory.TypeFactory
- createUsedService() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a "uses" directive for a Java 9 module file
- createUsedService() - Method in class spoon.support.DefaultCoreFactory
- createUsedService(CtTypeReference) - Method in interface spoon.reflect.factory.Factory
- createUsedService(CtTypeReference) - Method in class spoon.reflect.factory.FactoryImpl
- createUsedService(CtTypeReference) - Method in class spoon.reflect.factory.ModuleFactory
- createVariableAccess(CtVariableReference<T>, boolean) - Method in class spoon.support.compiler.jdt.JDTTreeBuilderHelper
-
Creates variable access from a
CtVariableReference
. - createVariableAssignment(CtVariableReference<A>, boolean, CtExpression<T>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a variable assignment (can be an expression or a statement).
- createVariableAssignment(CtVariableReference<A>, boolean, CtExpression<T>) - Method in interface spoon.reflect.factory.Factory
- createVariableAssignment(CtVariableReference<A>, boolean, CtExpression<T>) - Method in class spoon.reflect.factory.FactoryImpl
- createVariableAssignments(List<? extends CtVariable<T>>, List<? extends CtExpression<T>>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a list of statements that contains the assignments of a set of variables.
- createVariableAssignments(List<? extends CtVariable<T>>, List<? extends CtExpression<T>>) - Method in interface spoon.reflect.factory.Factory
- createVariableAssignments(List<? extends CtVariable<T>>, List<? extends CtExpression<T>>) - Method in class spoon.reflect.factory.FactoryImpl
- createVariableRead() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a variable read expression.
- createVariableRead() - Method in interface spoon.reflect.factory.Factory
- createVariableRead() - Method in class spoon.reflect.factory.FactoryImpl
- createVariableRead() - Method in class spoon.support.DefaultCoreFactory
- createVariableRead(CtVariableReference<T>, boolean) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a variable access for read.
- createVariableRead(CtVariableReference<T>, boolean) - Method in interface spoon.reflect.factory.Factory
- createVariableRead(CtVariableReference<T>, boolean) - Method in class spoon.reflect.factory.FactoryImpl
- createVariableReads(List<? extends CtVariable<?>>) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a list of variable accesses for read.
- createVariableReads(List<? extends CtVariable<?>>) - Method in interface spoon.reflect.factory.Factory
- createVariableReads(List<? extends CtVariable<?>>) - Method in class spoon.reflect.factory.FactoryImpl
- createVariableWrite() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a variable write expression.
- createVariableWrite() - Method in interface spoon.reflect.factory.Factory
- createVariableWrite() - Method in class spoon.reflect.factory.FactoryImpl
- createVariableWrite() - Method in class spoon.support.DefaultCoreFactory
- createVariableWrite(CtVariableReference<T>, boolean) - Method in class spoon.reflect.factory.CodeFactory
-
Creates a variable access for write.
- createVariableWrite(CtVariableReference<T>, boolean) - Method in interface spoon.reflect.factory.Factory
- createVariableWrite(CtVariableReference<T>, boolean) - Method in class spoon.reflect.factory.FactoryImpl
- createWhile() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
while
loop. - createWhile() - Method in interface spoon.reflect.factory.Factory
- createWhile() - Method in class spoon.reflect.factory.FactoryImpl
- createWhile() - Method in class spoon.support.DefaultCoreFactory
- createWildcardReference() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a wildcard reference.
- createWildcardReference() - Method in interface spoon.reflect.factory.Factory
- createWildcardReference() - Method in class spoon.reflect.factory.FactoryImpl
- createWildcardReference() - Method in class spoon.support.DefaultCoreFactory
- createYieldStatement() - Method in interface spoon.reflect.factory.CoreFactory
-
Creates a
yield
statement - createYieldStatement() - Method in class spoon.support.DefaultCoreFactory
- createYieldStatement(boolean) - Method in interface spoon.reflect.factory.Factory
- createYieldStatement(boolean) - Method in class spoon.reflect.factory.FactoryImpl
- CtAbstractBiScanner - Class in spoon.reflect.visitor
-
Defines the core bi-scan responsibility.
- CtAbstractBiScanner() - Constructor for class spoon.reflect.visitor.CtAbstractBiScanner
- CtAbstractImportVisitor - Class in spoon.reflect.visitor
-
Provides an empty implementation of
CtImportVisitor
. - CtAbstractImportVisitor() - Constructor for class spoon.reflect.visitor.CtAbstractImportVisitor
- CtAbstractInvocation<T> - Interface in spoon.reflect.code
-
This code element defines an abstract invocation on a
CtExecutable
. - CtAbstractSwitch<S> - Interface in spoon.reflect.code
-
This code element defines an abstract switch (either switch statement or switch expression).
- CtAbstractVisitor - Class in spoon.reflect.visitor
-
Provides an empty implementation of CtVisitor.
- CtAbstractVisitor() - Constructor for class spoon.reflect.visitor.CtAbstractVisitor
- CtActualTypeContainer - Interface in spoon.reflect.reference
-
This interface defines the capability related to binding generics (aka type parameters).
- CtAnnotatedElementType - Enum in spoon.reflect.declaration
-
This enum specifies the element type which is annotated by the annotation
- CtAnnotation<A extends Annotation> - Interface in spoon.reflect.declaration
-
This element represents an annotation on an element.
- CtAnnotationFieldAccess<T> - Interface in spoon.reflect.code
-
This code element defines an access to a annotation parameter variable.
- CtAnnotationFieldAccessImpl<T> - Class in spoon.support.reflect.code
- CtAnnotationFieldAccessImpl() - Constructor for class spoon.support.reflect.code.CtAnnotationFieldAccessImpl
- CtAnnotationImpl<A extends Annotation> - Class in spoon.support.reflect.declaration
-
The implementation for
CtAnnotation
. - CtAnnotationImpl() - Constructor for class spoon.support.reflect.declaration.CtAnnotationImpl
- CtAnnotationMethod<T> - Interface in spoon.reflect.declaration
-
This element defines an annotation method declared in an annotation type.
- CtAnnotationMethodImpl<T> - Class in spoon.support.reflect.declaration
-
The implementation for
CtAnnotationMethod
. - CtAnnotationMethodImpl() - Constructor for class spoon.support.reflect.declaration.CtAnnotationMethodImpl
- CtAnnotationType<T extends Annotation> - Interface in spoon.reflect.declaration
-
This element defines an annotation type.
- CtAnnotationTypeImpl<T extends Annotation> - Class in spoon.support.reflect.declaration
-
The implementation for
CtAnnotationType
. - CtAnnotationTypeImpl() - Constructor for class spoon.support.reflect.declaration.CtAnnotationTypeImpl
- CtAnonymousExecutable - Interface in spoon.reflect.declaration
-
This element defines an anonymous executable block declaration in a class.
- CtAnonymousExecutableImpl - Class in spoon.support.reflect.declaration
- CtAnonymousExecutableImpl() - Constructor for class spoon.support.reflect.declaration.CtAnonymousExecutableImpl
- CtArrayAccess<T,E extends CtExpression<?>> - Interface in spoon.reflect.code
-
This code element defines a one-dimensional array access.
- CtArrayAccessImpl<T,V extends CtExpression<?>> - Class in spoon.support.reflect.code
- CtArrayAccessImpl() - Constructor for class spoon.support.reflect.code.CtArrayAccessImpl
- CtArrayRead<T> - Interface in spoon.reflect.code
-
This code element defines a read access to an array.
- CtArrayReadImpl<T> - Class in spoon.support.reflect.code
- CtArrayReadImpl() - Constructor for class spoon.support.reflect.code.CtArrayReadImpl
- CtArrayTypeReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to an array.
- CtArrayTypeReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtArrayTypeReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtArrayTypeReferenceImpl
- CtArrayTypeReferenceImpl.DeclarationKind - Enum in spoon.support.reflect.reference
- CtArrayWrite<T> - Interface in spoon.reflect.code
-
This code element defines a write access to an array.
- CtArrayWriteImpl<T> - Class in spoon.support.reflect.code
- CtArrayWriteImpl() - Constructor for class spoon.support.reflect.code.CtArrayWriteImpl
- CtAssert<T> - Interface in spoon.reflect.code
-
This code element defines an assert clause.
- CtAssertImpl<T> - Class in spoon.support.reflect.code
- CtAssertImpl() - Constructor for class spoon.support.reflect.code.CtAssertImpl
- CtAssignment<T,A extends T> - Interface in spoon.reflect.code
-
This code element defines an assignment.
- CtAssignmentImpl<T,A extends T> - Class in spoon.support.reflect.code
- CtAssignmentImpl() - Constructor for class spoon.support.reflect.code.CtAssignmentImpl
- CtBFSIterator - Class in spoon.reflect.visitor
-
A class to be able to iterate over the children elements in the tree of a given node, in breadth-first order.
- CtBFSIterator(CtElement) - Constructor for class spoon.reflect.visitor.CtBFSIterator
-
CtIterator constructor, prepares the iterator from the @root node
- CtBinaryOperator<T> - Interface in spoon.reflect.code
-
This interface defines a binary operator.
- CtBinaryOperatorImpl<T> - Class in spoon.support.reflect.code
- CtBinaryOperatorImpl() - Constructor for class spoon.support.reflect.code.CtBinaryOperatorImpl
- CtBiScannerDefault - Class in spoon.reflect.visitor
-
This visitor implements a deep-search scan on the model for 2 elements.
- CtBiScannerDefault() - Constructor for class spoon.reflect.visitor.CtBiScannerDefault
- CtBlock<R> - Interface in spoon.reflect.code
-
This code element represents a block of code, that is to say a list of statements enclosed in curly brackets.
- CtBlockImpl<R> - Class in spoon.support.reflect.code
- CtBlockImpl() - Constructor for class spoon.support.reflect.code.CtBlockImpl
- CtBodyHolder - Interface in spoon.reflect.code
-
This abstract code element defines an element, which contains a body
- CtBreak - Interface in spoon.reflect.code
-
This code element defines a break statement.
- CtBreakImpl - Class in spoon.support.reflect.code
- CtBreakImpl() - Constructor for class spoon.support.reflect.code.CtBreakImpl
- CtCase<S> - Interface in spoon.reflect.code
-
This code element defines a case within a switch-case.
- CtCaseImpl<E> - Class in spoon.support.reflect.code
- CtCaseImpl() - Constructor for class spoon.support.reflect.code.CtCaseImpl
- CtCatch - Interface in spoon.reflect.code
-
This code element defines a
catch
of atry
. - CtCatchImpl - Class in spoon.support.reflect.code
- CtCatchImpl() - Constructor for class spoon.support.reflect.code.CtCatchImpl
- CtCatchVariable<T> - Interface in spoon.reflect.code
-
This code element defines an exception variable in a catch.
- CtCatchVariableImpl<T> - Class in spoon.support.reflect.code
- CtCatchVariableImpl() - Constructor for class spoon.support.reflect.code.CtCatchVariableImpl
- CtCatchVariableReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to
CtCatchVariable
. - CtCatchVariableReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtCatchVariableReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtCatchVariableReferenceImpl
- CtCFlowBreak - Interface in spoon.reflect.code
-
This abstract code element represents all the statements that break the control flow of the program.
- CtClass<T> - Interface in spoon.reflect.declaration
-
This element represents a class declaration.
- CtClassImpl<T> - Class in spoon.support.reflect.declaration
-
The implementation for
CtClass
. - CtClassImpl() - Constructor for class spoon.support.reflect.declaration.CtClassImpl
- CtCodeElement - Interface in spoon.reflect.code
-
This interface is the root interface of the code elements.
- CtCodeElementImpl - Class in spoon.support.reflect.code
- CtCodeElementImpl() - Constructor for class spoon.support.reflect.code.CtCodeElementImpl
- CtCodeSnippet - Interface in spoon.reflect.declaration
-
This interface represents snippets of source code that can be used in the AST to represent complex code without having to build the corresponding program model structure.
- CtCodeSnippetExpression<T> - Interface in spoon.reflect.code
-
This element is a code snippet that must represent an expression and can thus be inserted in the program's model as is.
- CtCodeSnippetExpressionImpl<T> - Class in spoon.support.reflect.code
- CtCodeSnippetExpressionImpl() - Constructor for class spoon.support.reflect.code.CtCodeSnippetExpressionImpl
- CtCodeSnippetStatement - Interface in spoon.reflect.code
-
This element is a code snippet that must represent a statement and can thus be inserted in the program's model as is.
- CtCodeSnippetStatementImpl - Class in spoon.support.reflect.code
- CtCodeSnippetStatementImpl() - Constructor for class spoon.support.reflect.code.CtCodeSnippetStatementImpl
- CtComment - Interface in spoon.reflect.code
-
This code element defines a comment Example:
int x = 0; // a comment
- CtComment.CommentType - Enum in spoon.reflect.code
- CtCommentImpl - Class in spoon.support.reflect.code
- CtCommentImpl() - Constructor for class spoon.support.reflect.code.CtCommentImpl
- CtCommentImpl(CtComment.CommentType) - Constructor for class spoon.support.reflect.code.CtCommentImpl
- CtCompilationUnit - Interface in spoon.reflect.declaration
-
Defines a compilation unit.
- CtCompilationUnit.UNIT_TYPE - Enum in spoon.reflect.declaration
- CtCompilationUnitImpl - Class in spoon.support.reflect.declaration
-
Implements a compilation unit.
- CtCompilationUnitImpl() - Constructor for class spoon.support.reflect.declaration.CtCompilationUnitImpl
- CtConditional<T> - Interface in spoon.reflect.code
-
This code element defines conditional expressions using the ? (ternary expressions).
- CtConditionalImpl<T> - Class in spoon.support.reflect.code
- CtConditionalImpl() - Constructor for class spoon.support.reflect.code.CtConditionalImpl
- CtConstructor<T> - Interface in spoon.reflect.declaration
-
This element defines a constructor declaration.
- CtConstructorCall<T> - Interface in spoon.reflect.code
-
This code element represents a constructor call.
- CtConstructorCallImpl<T> - Class in spoon.support.reflect.code
- CtConstructorCallImpl() - Constructor for class spoon.support.reflect.code.CtConstructorCallImpl
- CtConstructorImpl<T> - Class in spoon.support.reflect.declaration
- CtConstructorImpl() - Constructor for class spoon.support.reflect.declaration.CtConstructorImpl
- CtConsumableFunction<T> - Interface in spoon.reflect.visitor.chain
-
Represents a function, as
CtFunction
. - CtConsumer<T> - Interface in spoon.reflect.visitor.chain
-
The functional interface used to receive objects.
- CtContinue - Interface in spoon.reflect.code
-
This code element defines the continue statement.
- CtContinueImpl - Class in spoon.support.reflect.code
- CtContinueImpl() - Constructor for class spoon.support.reflect.code.CtContinueImpl
- CtDeprecatedRefactoring - Class in spoon.refactoring
- CtDeprecatedRefactoring() - Constructor for class spoon.refactoring.CtDeprecatedRefactoring
- CtDequeScanner - Class in spoon.reflect.visitor
-
This class defines a scanner that maintains a scanning stack for contextual awareness.
- CtDequeScanner() - Constructor for class spoon.reflect.visitor.CtDequeScanner
-
Default constructor.
- CtDo - Interface in spoon.reflect.code
-
This code element defines a
do
loop. - CtDoImpl - Class in spoon.support.reflect.code
- CtDoImpl() - Constructor for class spoon.support.reflect.code.CtDoImpl
- CtElement - Interface in spoon.reflect.declaration
-
This interface is the root interface for the metamodel elements (any program element).
- CtElementAssert - Class in spoon.testing
- CtElementAssert(CtElement) - Constructor for class spoon.testing.CtElementAssert
- CtElementImpl - Class in spoon.support.reflect.declaration
-
Contains the default implementation of most CtElement methods.
- CtElementImpl() - Constructor for class spoon.support.reflect.declaration.CtElementImpl
- CtElementPathBuilder - Class in spoon.reflect.path
-
This builder allow to create some CtPath from CtElements Created by nharrand on 21/02/2018.
- CtElementPathBuilder() - Constructor for class spoon.reflect.path.CtElementPathBuilder
- CtEnum<T extends Enum<?>> - Interface in spoon.reflect.declaration
-
This element represents an enumeration declaration.
- CtEnumImpl<T extends Enum<?>> - Class in spoon.support.reflect.declaration
- CtEnumImpl() - Constructor for class spoon.support.reflect.declaration.CtEnumImpl
- CtEnumValue<T> - Interface in spoon.reflect.declaration
-
Corresponds to one enum value specified in an enumeration.
- CtEnumValueImpl<T> - Class in spoon.support.reflect.declaration
- CtEnumValueImpl() - Constructor for class spoon.support.reflect.declaration.CtEnumValueImpl
- CtExecutable<R> - Interface in spoon.reflect.declaration
-
This element represents an executable element such as a method, a constructor, or an anonymous block.
- CtExecutableImpl<R> - Class in spoon.support.reflect.declaration
-
The implementation for
CtExecutable
. - CtExecutableImpl() - Constructor for class spoon.support.reflect.declaration.CtExecutableImpl
- CtExecutableReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to a
CtExecutable
. - CtExecutableReferenceExpression<T,E extends CtExpression<?>> - Interface in spoon.reflect.code
-
This abstract code element defines an expression which represents an executable reference.
- CtExecutableReferenceExpressionImpl<T,E extends CtExpression<?>> - Class in spoon.support.reflect.code
- CtExecutableReferenceExpressionImpl() - Constructor for class spoon.support.reflect.code.CtExecutableReferenceExpressionImpl
- CtExecutableReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtExecutableReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtExecutableReferenceImpl
- CtExpression<T> - Interface in spoon.reflect.code
-
This abstract code element defines a typed expression.
- CtExpressionImpl<T> - Class in spoon.support.reflect.code
- CtExpressionImpl() - Constructor for class spoon.support.reflect.code.CtExpressionImpl
- CtExtendedModifier - Class in spoon.support.reflect
-
Represents a modifier (eg "public").
- CtExtendedModifier(ModifierKind) - Constructor for class spoon.support.reflect.CtExtendedModifier
-
Deprecated.
- CtExtendedModifier(ModifierKind, boolean) - Constructor for class spoon.support.reflect.CtExtendedModifier
-
Creates a new extended modifier of the given kind with the given implicitness.
- CtField<T> - Interface in spoon.reflect.declaration
-
This element defines a field declaration.
- CtFieldAccess<T> - Interface in spoon.reflect.code
-
This code element defines an access to a field variable (read and write)
- CtFieldAccessImpl<T> - Class in spoon.support.reflect.code
- CtFieldAccessImpl() - Constructor for class spoon.support.reflect.code.CtFieldAccessImpl
- CtFieldImpl<T> - Class in spoon.support.reflect.declaration
-
The implementation for
CtField
. - CtFieldImpl() - Constructor for class spoon.support.reflect.declaration.CtFieldImpl
- CtFieldRead<T> - Interface in spoon.reflect.code
-
This code element defines a read access to a field.
- CtFieldReadImpl<T> - Class in spoon.support.reflect.code
- CtFieldReadImpl() - Constructor for class spoon.support.reflect.code.CtFieldReadImpl
- CtFieldReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to a
CtField
. - CtFieldReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtFieldReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtFieldReferenceImpl
- CtFieldWrite<T> - Interface in spoon.reflect.code
-
This code element defines a write access to a field.
- CtFieldWriteImpl<T> - Class in spoon.support.reflect.code
- CtFieldWriteImpl() - Constructor for class spoon.support.reflect.code.CtFieldWriteImpl
- CtFor - Interface in spoon.reflect.code
-
This code element defines a for loop.
- CtForEach - Interface in spoon.reflect.code
-
This code element defines a foreach statement.
- CtForEachImpl - Class in spoon.support.reflect.code
- CtForEachImpl() - Constructor for class spoon.support.reflect.code.CtForEachImpl
- CtForImpl - Class in spoon.support.reflect.code
- CtForImpl() - Constructor for class spoon.support.reflect.code.CtForImpl
- CtFormalTypeDeclarer - Interface in spoon.reflect.declaration
-
This abstract element defines a declaration that accepts formal type parameters (aka generics), such as a CtType (
class A<E>
), CtMethod or CtConstructor. - CtFunction<T,R> - Interface in spoon.reflect.visitor.chain
-
Abstraction for functions in the Spoon realm.
- CtIf - Interface in spoon.reflect.code
-
This code element represents an
if
statement. - CtIfImpl - Class in spoon.support.reflect.code
- CtIfImpl() - Constructor for class spoon.support.reflect.code.CtIfImpl
- CtImport - Interface in spoon.reflect.declaration
-
This element represents an import declaration.
- CtImportImpl - Class in spoon.support.reflect.declaration
- CtImportImpl() - Constructor for class spoon.support.reflect.declaration.CtImportImpl
- CtImportKind - Enum in spoon.reflect.declaration
- CtImportVisitor - Interface in spoon.reflect.visitor
-
This interface defines the visitor for the different types of CtImport
- CtInheritanceScanner - Class in spoon.reflect.visitor
-
This class provides an abstract implementation of the visitor that allows its subclasses to scan the metamodel elements by recursively using their (abstract) supertype scanning methods.
- CtInheritanceScanner() - Constructor for class spoon.reflect.visitor.CtInheritanceScanner
-
Default constructor.
- CtInterface<T> - Interface in spoon.reflect.declaration
-
This element defines an interface declaration.
- CtInterfaceImpl<T> - Class in spoon.support.reflect.declaration
- CtInterfaceImpl() - Constructor for class spoon.support.reflect.declaration.CtInterfaceImpl
- CtIntersectionTypeReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to an intersection type in generics or in casts.
- CtIntersectionTypeReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtIntersectionTypeReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtIntersectionTypeReferenceImpl
- CtInvocation<T> - Interface in spoon.reflect.code
-
This code element defines a concrete invocation.
- CtInvocationImpl<T> - Class in spoon.support.reflect.code
- CtInvocationImpl() - Constructor for class spoon.support.reflect.code.CtInvocationImpl
- CtIterator - Class in spoon.reflect.visitor
-
A class to be able to iterate over the children elements in the tree of a given node, in depth-first order.
- CtIterator(CtElement) - Constructor for class spoon.reflect.visitor.CtIterator
-
CtIterator constructor, prepares the iterator from the @root node
- CtJavaDoc - Interface in spoon.reflect.code
-
This code element defines a javadoc comment Example:
- CtJavaDocImpl - Class in spoon.support.reflect.code
- CtJavaDocImpl() - Constructor for class spoon.support.reflect.code.CtJavaDocImpl
- CtJavaDocTag - Interface in spoon.reflect.code
-
This code element defines a javadoc tag Example:
- CtJavaDocTag.TagType - Enum in spoon.reflect.code
-
Define the possible type for a tag
- CtJavaDocTagImpl - Class in spoon.support.reflect.code
- CtJavaDocTagImpl() - Constructor for class spoon.support.reflect.code.CtJavaDocTagImpl
- CtLabelledFlowBreak - Interface in spoon.reflect.code
-
This abstract code element represents all the statements that break the control flow of the program and which can support a label.
- CtLambda<T> - Interface in spoon.reflect.code
-
This code element represents the creation of a lambda.
- CtLambdaImpl<T> - Class in spoon.support.reflect.code
- CtLambdaImpl() - Constructor for class spoon.support.reflect.code.CtLambdaImpl
- CtLineElementComparator - Class in spoon.support.comparator
-
Comparator of compile-time elements.
- CtLineElementComparator() - Constructor for class spoon.support.comparator.CtLineElementComparator
- CtLiteral<T> - Interface in spoon.reflect.code
-
This code element defines a literal value (an int, a string, etc).
- CtLiteralImpl<T> - Class in spoon.support.reflect.code
- CtLiteralImpl() - Constructor for class spoon.support.reflect.code.CtLiteralImpl
- CtLocalVariable<T> - Interface in spoon.reflect.code
-
This code element defines a local variable definition (within an executable body).
- CtLocalVariableImpl<T> - Class in spoon.support.reflect.code
- CtLocalVariableImpl() - Constructor for class spoon.support.reflect.code.CtLocalVariableImpl
- CtLocalVariableReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to
CtLocalVariable
. - CtLocalVariableReferenceImpl<T> - Class in spoon.support.reflect.reference
-
An implementation for
CtLocalVariableReference
. - CtLocalVariableReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtLocalVariableReferenceImpl
-
Default constructor.
- CtLoop - Interface in spoon.reflect.code
-
This abstract code element defines a loop.
- CtLoopImpl - Class in spoon.support.reflect.code
- CtLoopImpl() - Constructor for class spoon.support.reflect.code.CtLoopImpl
- CtMethod<T> - Interface in spoon.reflect.declaration
-
This element defines a method declaration.
- CtMethodImpl<T> - Class in spoon.support.reflect.declaration
-
The implementation for
CtMethod
. - CtMethodImpl() - Constructor for class spoon.support.reflect.declaration.CtMethodImpl
- CtModel - Interface in spoon.reflect
-
represents a Java program, modeled by a set of compile-time (Ct) objects where each object is a program element (for instance, a CtClass represents a class).
- CtModelImpl - Class in spoon.reflect
- CtModelImpl(Factory) - Constructor for class spoon.reflect.CtModelImpl
- CtModelImpl.CtRootPackage - Class in spoon.reflect
- CtModifiable - Interface in spoon.reflect.declaration
-
This interface defines an element that accepts modifiers.
- CtModifierHandler - Class in spoon.support.reflect
- CtModifierHandler(CtElement) - Constructor for class spoon.support.reflect.CtModifierHandler
- CtModule - Interface in spoon.reflect.declaration
-
Represents a Java module as defined in Java 9.
- CtModuleDirective - Interface in spoon.reflect.declaration
-
Represents a directive of a
CtModule
The directives of a module declaration specify the module's dependences on other modulesCtModuleRequirement
, the packages it makes available to other modulesCtPackageExport
, the services it consumesCtUsedService
, and the services it providesCtProvidedService
. - CtModuleImpl - Class in spoon.support.reflect.declaration
- CtModuleImpl() - Constructor for class spoon.support.reflect.declaration.CtModuleImpl
- CtModuleReference - Interface in spoon.reflect.reference
-
Represents a reference to a
CtModule
- CtModuleReferenceImpl - Class in spoon.support.reflect.reference
- CtModuleReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtModuleReferenceImpl
- CtModuleRequirement - Interface in spoon.reflect.declaration
-
Represents a require module in a Java module definition The requires directive specifies the name of a module on which the current module has a dependence.
- CtModuleRequirement.RequiresModifier - Enum in spoon.reflect.declaration
- CtModuleRequirementImpl - Class in spoon.support.reflect.declaration
- CtModuleRequirementImpl() - Constructor for class spoon.support.reflect.declaration.CtModuleRequirementImpl
- CtMultiTypedElement - Interface in spoon.reflect.declaration
-
Defined an element with several types.
- CtNamedElement - Interface in spoon.reflect.declaration
-
Declares an element that has a name (a class, a method, a variable, etc).
- CtNamedElementImpl - Class in spoon.support.reflect.declaration
- CtNamedElementImpl() - Constructor for class spoon.support.reflect.declaration.CtNamedElementImpl
- CtNamedPathElement - Class in spoon.reflect.path.impl
-
A CtPathElement that match on CtNamedElement#getSimpleName
- CtNamedPathElement(String) - Constructor for class spoon.reflect.path.impl.CtNamedPathElement
- CtNamedPathElement(String, boolean) - Constructor for class spoon.reflect.path.impl.CtNamedPathElement
- CtNewArray<T> - Interface in spoon.reflect.code
-
This code element defines the inline creation of a new array.
- CtNewArrayImpl<T> - Class in spoon.support.reflect.code
- CtNewArrayImpl() - Constructor for class spoon.support.reflect.code.CtNewArrayImpl
- CtNewClass<T> - Interface in spoon.reflect.code
-
This code element represents the creation of a anonymous class.
- CtNewClassImpl<T> - Class in spoon.support.reflect.code
- CtNewClassImpl() - Constructor for class spoon.support.reflect.code.CtNewClassImpl
- CtOperatorAssignment<T,A extends T> - Interface in spoon.reflect.code
-
This code element defines an self-operated assignment such as += or *=.
- CtOperatorAssignmentImpl<T,A extends T> - Class in spoon.support.reflect.code
- CtOperatorAssignmentImpl() - Constructor for class spoon.support.reflect.code.CtOperatorAssignmentImpl
- CtPackage - Interface in spoon.reflect.declaration
-
This element defines a package declaration.
- CtPackageAssert - Class in spoon.testing
- CtPackageAssert(CtPackage) - Constructor for class spoon.testing.CtPackageAssert
- CtPackageDeclaration - Interface in spoon.reflect.declaration
-
This element represents an package declaration.
- CtPackageDeclarationImpl - Class in spoon.support.reflect.declaration
- CtPackageDeclarationImpl() - Constructor for class spoon.support.reflect.declaration.CtPackageDeclarationImpl
- CtPackageExport - Interface in spoon.reflect.declaration
-
Represents an exported or opened package in a Java module The exports directive specifies the name of a package to be exported by the current module.
- CtPackageExportImpl - Class in spoon.support.reflect.declaration
- CtPackageExportImpl() - Constructor for class spoon.support.reflect.declaration.CtPackageExportImpl
- CtPackageImpl - Class in spoon.support.reflect.declaration
-
The implementation for
CtPackage
. - CtPackageImpl() - Constructor for class spoon.support.reflect.declaration.CtPackageImpl
- CtPackageReference - Interface in spoon.reflect.reference
-
This interface defines a reference to a
CtPackage
. - CtPackageReferenceImpl - Class in spoon.support.reflect.reference
- CtPackageReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtPackageReferenceImpl
- CtParameter<T> - Interface in spoon.reflect.declaration
-
This element defines an executable parameter declaration.
- CtParameterImpl<T> - Class in spoon.support.reflect.declaration
-
The implementation for
CtParameter
. - CtParameterImpl() - Constructor for class spoon.support.reflect.declaration.CtParameterImpl
- CtParameterReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to a
CtParameter
of a method. - CtParameterReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtParameterReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtParameterReferenceImpl
- CtParameterRemoveRefactoring - Class in spoon.refactoring
-
Removes target
CtParameter
from the parent targetCtExecutable
and from all overriding/overridden methods of related type hierarchies and from all lambda expressions (if any) implementing the modified interface. - CtParameterRemoveRefactoring() - Constructor for class spoon.refactoring.CtParameterRemoveRefactoring
- CtPath - Interface in spoon.reflect.path
-
A CtPath allows to define the path to a CtElement in the Spoon model, eg ".spoon.test.path.Foo.foo#body#statement[index=0]"
- CtPathBuilder - Class in spoon.reflect.path
-
This builder allow to create some CtPath.
- CtPathBuilder() - Constructor for class spoon.reflect.path.CtPathBuilder
- CtPathElement<P extends CtElement,T extends CtElement> - Interface in spoon.reflect.path.impl
-
A single path element from a CtPath.
- CtPathException - Exception in spoon.reflect.path
-
This exception is throw when there are errors during a CtPath building or evaluation.
- CtPathException() - Constructor for exception spoon.reflect.path.CtPathException
- CtPathException(String) - Constructor for exception spoon.reflect.path.CtPathException
- CtPathException(Throwable) - Constructor for exception spoon.reflect.path.CtPathException
- CtPathImpl - Class in spoon.reflect.path.impl
-
Default implementation for a CtPath
- CtPathImpl() - Constructor for class spoon.reflect.path.impl.CtPathImpl
- CtPathStringBuilder - Class in spoon.reflect.path
-
Created by nicolas on 27/08/2015.
- CtPathStringBuilder() - Constructor for class spoon.reflect.path.CtPathStringBuilder
- CtPattern - Interface in spoon.reflect.code
-
This interface represents a common super type for different patterns implemented in the Java language.
- CtProvidedService - Interface in spoon.reflect.declaration
-
Represents a provided service in a
CtModule
. - CtProvidedServiceImpl - Class in spoon.support.reflect.declaration
- CtProvidedServiceImpl() - Constructor for class spoon.support.reflect.declaration.CtProvidedServiceImpl
- CtQuery - Interface in spoon.reflect.visitor.chain
-
CtQuery represents a query, which can be used to traverse a spoon model and collect children elements in several ways.
- CtQueryable - Interface in spoon.reflect.visitor.chain
-
Represents an object on which one can make queries.
- CtQueryAware - Interface in spoon.reflect.visitor.chain
-
Expert-only capability interface so as to write advanced
CtFunction
andFilter
that need to access the state of the top-levelCtQuery
instance containing the function to be evaluated. - CtQueryImpl - Class in spoon.reflect.visitor.chain
- CtQueryImpl(Object...) - Constructor for class spoon.reflect.visitor.chain.CtQueryImpl
- CtRecord - Interface in spoon.reflect.declaration
-
This element represents a record declaration.
- CtRecordComponent - Interface in spoon.reflect.declaration
-
This element represents a record component.
- CtRecordComponentImpl - Class in spoon.support.reflect.declaration
- CtRecordComponentImpl() - Constructor for class spoon.support.reflect.declaration.CtRecordComponentImpl
- CtRecordImpl - Class in spoon.support.reflect.declaration
- CtRecordImpl() - Constructor for class spoon.support.reflect.declaration.CtRecordImpl
- CtRefactoring - Interface in spoon.refactoring
-
Defines basic contract of all refactoring implementations.
Contract: to process a required refactoring.
Usage: - CtReference - Interface in spoon.reflect.reference
-
This is the root interface for named program element references.
- CtReferenceImpl - Class in spoon.support.reflect.reference
- CtReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtReferenceImpl
- CtRenameGenericVariableRefactoring - Class in spoon.refactoring
-
Spoon model that can refactor any type of variable (method parameters, local variables, field variables.
- CtRenameGenericVariableRefactoring() - Constructor for class spoon.refactoring.CtRenameGenericVariableRefactoring
- CtRenameLocalVariableRefactoring - Class in spoon.refactoring
-
Spoon model refactoring function which renames `target` local variable to `newName`
This refactoring will throwRefactoringException
if the model would be not consistent after rename to new name. - CtRenameLocalVariableRefactoring() - Constructor for class spoon.refactoring.CtRenameLocalVariableRefactoring
- CtRenameRefactoring<T extends CtNamedElement> - Interface in spoon.refactoring
-
The kind of refactoring, which renames a `target` element to the `newName`
Usage: - CtResource<T> - Interface in spoon.reflect.code
-
This code element defines a resource used in the try-with-resource statement.
- CtReturn<R> - Interface in spoon.reflect.code
-
This code element represents a
return
statement. - CtReturnImpl<R> - Class in spoon.support.reflect.code
- CtReturnImpl() - Constructor for class spoon.support.reflect.code.CtReturnImpl
- CtRHSReceiver<A> - Interface in spoon.reflect.code
- CtRole - Enum in spoon.reflect.path
-
Identifies the roles of attributes of spoon model.
- CtRolePathElement - Class in spoon.reflect.path.impl
-
A CtPathElement that define some roles for matching.
- CtRolePathElement(CtRole) - Constructor for class spoon.reflect.path.impl.CtRolePathElement
- CtRootPackage() - Constructor for class spoon.reflect.CtModelImpl.CtRootPackage
- CtScanner - Class in spoon.reflect.visitor
-
This visitor implements a deep-search scan on the model.
- CtScanner() - Constructor for class spoon.reflect.visitor.CtScanner
-
Default constructor.
- CtScannerFunction - Class in spoon.reflect.visitor.filter
-
Returns all children of an element.
- CtScannerFunction() - Constructor for class spoon.reflect.visitor.filter.CtScannerFunction
- CtScannerListener - Interface in spoon.reflect.visitor.chain
-
Responsible for performing an action when a scanner enters/exits a node while scanning the AST.
- CtSealable - Interface in spoon.reflect.declaration
-
This interface represents any type that can be sealed.
- CtShadowable - Interface in spoon.reflect.declaration
-
A shadow element is an element that is in the Spoon model, but does not exist in the actual source code.
- CtStatement - Interface in spoon.reflect.code
-
This abstract code element represents all the statements, which can be part of a block.
- CtStatementImpl - Class in spoon.support.reflect.code
- CtStatementImpl() - Constructor for class spoon.support.reflect.code.CtStatementImpl
- CtStatementList - Interface in spoon.reflect.code
-
This code element represents a list of statements.
- CtStatementListImpl<R> - Class in spoon.support.reflect.code
- CtStatementListImpl() - Constructor for class spoon.support.reflect.code.CtStatementListImpl
- CtSuperAccess<T> - Interface in spoon.reflect.code
-
This code element defines an access to super.
- CtSuperAccessImpl<T> - Class in spoon.support.reflect.code
- CtSuperAccessImpl() - Constructor for class spoon.support.reflect.code.CtSuperAccessImpl
- CtSwitch<S> - Interface in spoon.reflect.code
-
This code element defines a switch statement.
- CtSwitchExpression<T,S> - Interface in spoon.reflect.code
-
This code element defines a switch expression.
- CtSwitchExpressionImpl<T,S> - Class in spoon.support.reflect.code
- CtSwitchExpressionImpl() - Constructor for class spoon.support.reflect.code.CtSwitchExpressionImpl
- CtSwitchImpl<S> - Class in spoon.support.reflect.code
- CtSwitchImpl() - Constructor for class spoon.support.reflect.code.CtSwitchImpl
- CtSynchronized - Interface in spoon.reflect.code
-
This code element defines a
synchronized
statement. - CtSynchronizedImpl - Class in spoon.support.reflect.code
- CtSynchronizedImpl() - Constructor for class spoon.support.reflect.code.CtSynchronizedImpl
- CtTargetedExpression<T,E extends CtExpression<?>> - Interface in spoon.reflect.code
-
This abstract code element defines an expression which contains a target expression.
- CtTargetedExpressionImpl<E,T extends CtExpression<?>> - Class in spoon.support.reflect.code
- CtTargetedExpressionImpl() - Constructor for class spoon.support.reflect.code.CtTargetedExpressionImpl
- CtTextBlock - Interface in spoon.reflect.code
-
This code element defines a Text Block String Literal.
- CtTextBlockImpl - Class in spoon.support.reflect.code
- CtTextBlockImpl() - Constructor for class spoon.support.reflect.code.CtTextBlockImpl
- CtThisAccess<T> - Interface in spoon.reflect.code
-
This code element defines an access to this.
- CtThisAccessImpl<T> - Class in spoon.support.reflect.code
- CtThisAccessImpl() - Constructor for class spoon.support.reflect.code.CtThisAccessImpl
- CtThrow - Interface in spoon.reflect.code
-
This code element defines a
throw
statement. - CtThrowImpl - Class in spoon.support.reflect.code
- CtThrowImpl() - Constructor for class spoon.support.reflect.code.CtThrowImpl
- CtTry - Interface in spoon.reflect.code
-
This code element defines a
try
statement. - CtTryImpl - Class in spoon.support.reflect.code
- CtTryImpl() - Constructor for class spoon.support.reflect.code.CtTryImpl
- CtTryWithResource - Interface in spoon.reflect.code
-
This code element defines a
try
with resource statement. - CtTryWithResourceImpl - Class in spoon.support.reflect.code
- CtTryWithResourceImpl() - Constructor for class spoon.support.reflect.code.CtTryWithResourceImpl
- CtType<T> - Interface in spoon.reflect.declaration
-
This abstract element defines a super-type for classes and interfaces, which can declare methods.
- CtTypeAccess<A> - Interface in spoon.reflect.code
-
This code element represents a type reference usable as an expression.
- CtTypeAccessImpl<A> - Class in spoon.support.reflect.code
- CtTypeAccessImpl() - Constructor for class spoon.support.reflect.code.CtTypeAccessImpl
- CtTypedElement<T> - Interface in spoon.reflect.declaration
-
This abstract element defines a typed element.
- CtTypedNameElement<P extends CtElement,T extends CtElement> - Class in spoon.reflect.path.impl
-
spoon.reflect.path.impl.CtPathElement that match on CtNamedElement
- CtTypedNameElement(Class<T>) - Constructor for class spoon.reflect.path.impl.CtTypedNameElement
- CtTypeImpl<T> - Class in spoon.support.reflect.declaration
-
The implementation for
CtType
. - CtTypeImpl() - Constructor for class spoon.support.reflect.declaration.CtTypeImpl
- CtTypeInformation - Interface in spoon.reflect.declaration
-
Returns information that can be obtained both at compile-time and run-time For CtElement, the compile-time information is given For CtTypeReference, the runtime information is given (using the Reflection API)
- CtTypeMember - Interface in spoon.reflect.declaration
-
This interface represents a member of a class (field, method, nested class or static/instance initializer).
- CtTypeMemberWildcardImportReference - Interface in spoon.reflect.reference
-
This interface defines a import reference to all static type members of a type.
Example:somePackage.Type.*;
- CtTypeMemberWildcardImportReferenceImpl - Class in spoon.support.reflect.reference
-
This class intends to be used only to represent the reference of a static import of all members of a type: import static org.junit.Assert.*;
- CtTypeMemberWildcardImportReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtTypeMemberWildcardImportReferenceImpl
- CtTypeParameter - Interface in spoon.reflect.declaration
-
This element defines a declaration of a type parameter (aka generics).
- CtTypeParameterImpl - Class in spoon.support.reflect.declaration
- CtTypeParameterImpl() - Constructor for class spoon.support.reflect.declaration.CtTypeParameterImpl
- CtTypeParameterReference - Interface in spoon.reflect.reference
-
This interface defines a reference to a type parameter (aka generics).
- CtTypeParameterReferenceImpl - Class in spoon.support.reflect.reference
- CtTypeParameterReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtTypeParameterReferenceImpl
- CtTypePattern - Interface in spoon.reflect.code
-
This code element defines a type pattern, introduced in Java 16 by JEP 394.
- CtTypePatternImpl - Class in spoon.support.reflect.code
- CtTypePatternImpl() - Constructor for class spoon.support.reflect.code.CtTypePatternImpl
- CtTypeReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to a
CtType
or sub-type. - CtTypeReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtTypeReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtTypeReferenceImpl
- CTTYPES - Static variable in interface spoon.SpoonModelBuilder.InputType
- CtUnaryOperator<T> - Interface in spoon.reflect.code
-
This code element represents a unary operator.
- CtUnaryOperatorImpl<T> - Class in spoon.support.reflect.code
- CtUnaryOperatorImpl() - Constructor for class spoon.support.reflect.code.CtUnaryOperatorImpl
- CtUnboundVariableReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to an unbound
CtVariable
. - CtUnboundVariableReferenceImpl<T> - Class in spoon.support.reflect.reference
-
represents a reference to an unbound field (used when no full classpath is available
- CtUnboundVariableReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtUnboundVariableReferenceImpl
- CtUnnamedModule() - Constructor for class spoon.reflect.factory.ModuleFactory.CtUnnamedModule
- CtUnresolvedImport - Class in spoon.experimental
- CtUnresolvedImport() - Constructor for class spoon.experimental.CtUnresolvedImport
- CtUsedService - Interface in spoon.reflect.declaration
-
Represents the declaration of a used service in a
CtModule
The uses directive specifies a service for which the current module may discover providers via java.util.ServiceLoader. - CtUsedServiceImpl - Class in spoon.support.reflect.declaration
- CtUsedServiceImpl() - Constructor for class spoon.support.reflect.declaration.CtUsedServiceImpl
- CtVariable<T> - Interface in spoon.reflect.declaration
-
This abstract element defines a variable declaration.
- CtVariableAccess<T> - Interface in spoon.reflect.code
-
This code element defines an access to a variable (read and write).
- CtVariableAccessImpl<T> - Class in spoon.support.reflect.code
- CtVariableAccessImpl() - Constructor for class spoon.support.reflect.code.CtVariableAccessImpl
- CtVariableRead<T> - Interface in spoon.reflect.code
-
This code element defines an read access to a variable.
- CtVariableReadImpl<T> - Class in spoon.support.reflect.code
- CtVariableReadImpl() - Constructor for class spoon.support.reflect.code.CtVariableReadImpl
- CtVariableReference<T> - Interface in spoon.reflect.reference
-
This interface defines a reference to a
CtVariable
or sub-type. - CtVariableReferenceImpl<T> - Class in spoon.support.reflect.reference
- CtVariableReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtVariableReferenceImpl
- CtVariableWrite<T> - Interface in spoon.reflect.code
-
This code element defines a write to a variable.
- CtVariableWriteImpl<T> - Class in spoon.support.reflect.code
- CtVariableWriteImpl() - Constructor for class spoon.support.reflect.code.CtVariableWriteImpl
- CtVisitable - Interface in spoon.reflect.visitor
-
Define a visitable element in spoon.
- CtVisitor - Interface in spoon.reflect.visitor
-
This interface defines the visitor for the Spoon metamodel, as defined in
spoon.reflect.declaration
,spoon.reflect.code
, andspoon.reflect.reference
. - CtWhile - Interface in spoon.reflect.code
-
This code element defines a
while
loop. - CtWhileImpl - Class in spoon.support.reflect.code
- CtWhileImpl() - Constructor for class spoon.support.reflect.code.CtWhileImpl
- CtWildcardReference - Interface in spoon.reflect.reference
-
Represents a wildcard in generic type annotations, i.e.
- CtWildcardReferenceImpl - Class in spoon.support.reflect.reference
- CtWildcardReferenceImpl() - Constructor for class spoon.support.reflect.reference.CtWildcardReferenceImpl
- CtYieldStatement - Interface in spoon.reflect.code
-
This code element defines a
yield
statement. - CtYieldStatementImpl - Class in spoon.support.reflect.code
-
CtYieldStatementImpl
- CtYieldStatementImpl() - Constructor for class spoon.support.reflect.code.CtYieldStatementImpl
D
- DATE - Variable in class spoon.reflect.factory.TypeFactory
- dateType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the date type.
- DEBUG - Enum constant in enum spoon.compiler.Environment.PRETTY_PRINTING_MODE
-
direct in
DefaultJavaPrettyPrinter
, no preprocessors are applied to the model before pretty-printing }. - DEBUG - Enum constant in enum spoon.support.Level
- debugMessage(String) - Method in interface spoon.compiler.Environment
-
Logs a debug message
- debugMessage(String) - Method in class spoon.support.StandardEnvironment
- DEC_TAB - Enum constant in enum spoon.support.sniper.internal.TokenType
- DECIMAL - Enum constant in enum spoon.reflect.code.LiteralBase
- DeclarationSourcePosition - Interface in spoon.reflect.cu.position
-
Represents the position of a program element in a source file in an immutable manner.
- DeclarationSourcePositionImpl - Class in spoon.support.reflect.cu.position
-
This class represents the position of a Java program element in a source file.
- DeclarationSourcePositionImpl(CompilationUnit, int, int, int, int, int, int, int[]) - Constructor for class spoon.support.reflect.cu.position.DeclarationSourcePositionImpl
- DECLARED_IMPORT - Enum constant in enum spoon.reflect.path.CtRole
- DECLARED_MODULE - Enum constant in enum spoon.reflect.path.CtRole
- DECLARED_MODULE_REF - Enum constant in enum spoon.reflect.path.CtRole
- DECLARED_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- DECLARED_TYPE_REF - Enum constant in enum spoon.reflect.path.CtRole
- DECLARING_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- decTab() - Method in class spoon.reflect.visitor.DefaultTokenWriter
- decTab() - Method in class spoon.reflect.visitor.PrinterHelper
-
Decrements the current number of tabs.
- decTab() - Method in interface spoon.reflect.visitor.TokenWriter
-
decrements indentation
- decTab() - Method in class spoon.support.sniper.internal.MutableTokenWriter
- decTab() - Method in class spoon.support.sniper.internal.TokenWriterProxy
- dedup(String) - Method in class spoon.reflect.factory.FactoryImpl
-
Returns a String equal to the given symbol.
- DeepRepresentationComparator - Class in spoon.support.comparator
-
Compares based on a toString representation.
- DeepRepresentationComparator() - Constructor for class spoon.support.comparator.DeepRepresentationComparator
- DEFAULT_CODE_COMPLIANCE_LEVEL - Static variable in class spoon.support.StandardEnvironment
- DEFAULT_EXPRESSION - Enum constant in enum spoon.reflect.path.CtRole
- DefaultCoreFactory - Class in spoon.support
-
This class implements a default core factory for Spoon's meta-model.
- DefaultCoreFactory() - Constructor for class spoon.support.DefaultCoreFactory
-
Default constructor.
- DefaultGenerator - Class in spoon.pattern.internal
-
Drives generation process
- DefaultGenerator(Factory, ListOfNodes) - Constructor for class spoon.pattern.internal.DefaultGenerator
- DefaultImportComparator - Class in spoon.reflect.visitor
-
Defines order of imports: 1) imports are ordered alphabetically 2) static imports are last
- DefaultImportComparator() - Constructor for class spoon.reflect.visitor.DefaultImportComparator
- DefaultJavaPrettyPrinter - Class in spoon.reflect.visitor
-
A visitor for generating Java code from the program compile-time model.
- DefaultJavaPrettyPrinter(Environment) - Constructor for class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
Creates a new code generator visitor.
- DefaultOutputDestinationHandler - Class in spoon.support
-
Default behavior for the destination of the spoon.
- DefaultOutputDestinationHandler(File, Environment) - Constructor for class spoon.support.DefaultOutputDestinationHandler
- DefaultSourceFragmentPrinter - Class in spoon.support.sniper.internal
-
A default dumb implementation of
SourceFragmentPrinter
, which only prints the given PrinterEvent. - DefaultTokenWriter - Class in spoon.reflect.visitor
-
Implementation of
TokenWriter
, which writes all tokens toPrinterHelper
- DefaultTokenWriter() - Constructor for class spoon.reflect.visitor.DefaultTokenWriter
- DefaultTokenWriter(PrinterHelper) - Constructor for class spoon.reflect.visitor.DefaultTokenWriter
- defineArgs() - Static method in class spoon.Launcher
-
Defines the common arguments for sub-launchers.
- delete() - Method in interface spoon.reflect.declaration.CtElement
-
Deletes the element.
- delete() - Method in class spoon.support.reflect.declaration.CtElementImpl
- DeleteAction<T> - Class in spoon.support.modelobs.action
-
defines the delete action
- DeleteAction(Context, T) - Constructor for class spoon.support.modelobs.action.DeleteAction
- DeleteAllAction<T> - Class in spoon.support.modelobs.action
-
defines the delete all action.
- DeleteAllAction(Context, Collection) - Constructor for class spoon.support.modelobs.action.DeleteAllAction
- DeleteAllAction(Context, Map) - Constructor for class spoon.support.modelobs.action.DeleteAllAction
- DEPRECATED - Enum constant in enum spoon.reflect.code.CtJavaDocTag.TagType
- DerivedProperty - Annotation Type in spoon.support
-
Tells that a metamodel property is derived, ie computed from the value of another property.
- descendantIterator() - Method in interface spoon.reflect.declaration.CtElement
-
Returns an iterator over this CtElement's descendants.
- descendantIterator() - Method in class spoon.support.reflect.declaration.CtElementImpl
- deserialize(byte[]) - Static method in class spoon.support.util.ByteSerialization
- detectEncoding(SpoonFile, byte[]) - Method in interface spoon.compiler.builder.EncodingProvider
-
User-defined function, which is used to detect encoding for each file
- detectIndentation(CtCompilationUnit) - Static method in class spoon.support.sniper.internal.IndentationDetector
-
Detect the indentation style of the given compilation unit as 1, 2 or 4 spaces or tabs by inspecting the whitespace preceding type members of top-level type declarations.
- detectIssues() - Method in class spoon.refactoring.AbstractRenameRefactoring
- detectIssues() - Method in class spoon.refactoring.CtParameterRemoveRefactoring
-
validates whether this refactoring can be done without changing behavior of the refactored code.
- detectNameConflicts() - Method in class spoon.refactoring.AbstractRenameRefactoring
-
client may implement this method to check whether
AbstractRenameRefactoring.newName
is in conflict with names of other model elements - detectNameConflicts() - Method in class spoon.refactoring.CtRenameLocalVariableRefactoring
- DIMENSION - Enum constant in enum spoon.reflect.path.CtRole
- directPrint(String) - Method in class spoon.support.sniper.internal.MutableTokenWriter
-
Prints a piece of text regardless of mute status Don't call this, this is dangerous and irregular design.
- DirectReferenceFilter<T extends CtReference> - Class in spoon.reflect.visitor.filter
-
This simple filter matches all the references to a given element by using reference equality.
- DirectReferenceFilter(CtReference) - Constructor for class spoon.reflect.visitor.filter.DirectReferenceFilter
-
Creates the filter.
- disableConsistencyChecks() - Method in interface spoon.compiler.Environment
-
Disable all consistency checks on the AST.
- disableConsistencyChecks() - Method in class spoon.FluentLauncher
-
Disable all consistency checks on the AST.
- disableConsistencyChecks() - Method in class spoon.support.StandardEnvironment
- distinctSet(Set<String>) - Method in class spoon.reflect.visitor.filter.AllTypeMembersFunction
-
The types whose qualified name is in distinctSet are not visited.
- DistinctTypeListener(Set<String>) - Constructor for class spoon.reflect.visitor.filter.SuperInheritanceHierarchyFunction.DistinctTypeListener
- DIV - Enum constant in enum spoon.reflect.code.BinaryOperatorKind
-
Division.
- DO - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- DOC_ROOT - Enum constant in enum spoon.javadoc.internal.JavadocInlineTag.Type
- DOCUMENTATION_TYPE - Enum constant in enum spoon.reflect.path.CtRole
- DOCUMENTATION_TYPE_REALNAME - Enum constant in enum spoon.reflect.path.CtRole
- doScan(CtRole, CtElement, ScanningMode) - Method in class spoon.reflect.visitor.EarlyTerminatingScanner
-
This method is called ONLY when the listener decides that the current element and children should be visited.
- DOUBLE - Variable in class spoon.reflect.factory.TypeFactory
- DOUBLE_PRIMITIVE - Variable in class spoon.reflect.factory.TypeFactory
- doublePrimitiveType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the double primitive type.
- doubleType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the double type.
E
- EarlyTerminatingScanner<T> - Class in spoon.reflect.visitor
-
Extends
CtScanner
, to support early termination of scanning process and scan listeners. - EarlyTerminatingScanner() - Constructor for class spoon.reflect.visitor.EarlyTerminatingScanner
- element - Variable in class spoon.support.compiler.jdt.ASTPair
- element - Variable in class spoon.support.sniper.internal.ElementPrinterEvent
- ElementNameMap<T extends CtElement> - Class in spoon.support.util.internal
-
This class is for internal use only.
- ElementNameMap() - Constructor for class spoon.support.util.internal.ElementNameMap
- ElementNode - Class in spoon.pattern.internal.node
-
Generates/Matches a copy of a single CtElement AST node with all it's children (whole AST tree of the root CtElement)
- ElementNode(MetamodelConcept, CtElement) - Constructor for class spoon.pattern.internal.node.ElementNode
- ElementPrinterEvent - Class in spoon.support.sniper.internal
-
Represents an action of Printer, which prints whole element
- ElementPrinterEvent(CtRole, CtElement) - Constructor for class spoon.support.sniper.internal.ElementPrinterEvent
- ElementPrinterHelper - Class in spoon.reflect.visitor
- ElementPrinterHelper(TokenWriter, DefaultJavaPrettyPrinter, Environment) - Constructor for class spoon.reflect.visitor.ElementPrinterHelper
- ElementPrinterHelper.PrintTypeArguments - Enum in spoon.reflect.visitor
-
Whether to print generic types for references.
- elementsDeque - Variable in class spoon.reflect.visitor.CtDequeScanner
-
The stack of elements.
- ElementSourceFragment - Class in spoon.support.sniper.internal
-
Represents a part of source code of an
CtElement
It is connected into a tree ofElementSourceFragment
s. - ElementSourceFragment(SourcePositionHolder, RoleHandler) - Constructor for class spoon.support.sniper.internal.ElementSourceFragment
-
Creates a source fragment of
SourcePositionHolder
- ELSE - Enum constant in enum spoon.reflect.path.CtRole
- EMODIFIER - Enum constant in enum spoon.reflect.path.CtRole
- empty() - Static method in class spoon.support.compiler.SpoonPom.MavenOptions
- EmptyClearableList<E> - Class in spoon.support.util
- EmptyClearableSet<E> - Class in spoon.support.util
- EmptyIterator<E> - Class in spoon.support.util
- emptyList() - Static method in class spoon.support.reflect.declaration.CtElementImpl
- EmptyModelChangeListener - Class in spoon.support.modelobs
-
is the listener that creates the action on the model.
- EmptyModelChangeListener() - Constructor for class spoon.support.modelobs.EmptyModelChangeListener
- emptySet() - Static method in class spoon.support.reflect.declaration.CtElementImpl
- enableJavadoc() - Method in class spoon.compiler.builder.AdvancedOptions
- enablePreview() - Method in class spoon.compiler.builder.ComplianceOptions
- encoding(String) - Method in class spoon.compiler.builder.ClasspathOptions
- encoding(Charset) - Method in class spoon.FluentLauncher
-
Set the encoding to use for parsing source code
- EncodingProvider - Interface in spoon.compiler.builder
- end(SpoonProgress.Process) - Method in class spoon.support.compiler.ProgressLogger
- end(SpoonProgress.Process) - Method in interface spoon.support.compiler.SpoonProgress
-
is called when a new process is started
- endVisit(AllocationExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(AND_AND_Expression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(AnnotationMethodDeclaration, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(Argument, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ArrayAllocationExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ArrayInitializer, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ArrayQualifiedTypeReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ArrayQualifiedTypeReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ArrayReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ArrayTypeReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ArrayTypeReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(AssertStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(Assignment, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(BinaryExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(Block, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(BreakStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(CaseStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(CharLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ClassLiteralAccess, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(CompilationUnitDeclaration, CompilationUnitScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(CompoundAssignment, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ConditionalExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ConstructorDeclaration, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ContinueStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(DoStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(DoubleLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(EqualExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ExplicitConstructorCall, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ExtendedStringLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(FalseLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(FieldDeclaration, MethodScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(FieldReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(FloatLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ForeachStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ForStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(IfStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(Initializer, MethodScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(InstanceOfExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(IntLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(LabeledStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(LambdaExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(LocalDeclaration, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(LongLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(MarkerAnnotation, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(MarkerAnnotation, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(MemberValuePair, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(MemberValuePair, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(MessageSend, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(MethodDeclaration, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(NormalAnnotation, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(NormalAnnotation, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(NullLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(OR_OR_Expression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ParameterizedQualifiedTypeReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ParameterizedQualifiedTypeReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ParameterizedSingleTypeReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ParameterizedSingleTypeReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(PostfixExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(PrefixExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(QualifiedAllocationExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(QualifiedNameReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(QualifiedSuperReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(QualifiedThisReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(QualifiedThisReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(QualifiedTypeReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(QualifiedTypeReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(RecordComponent, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ReferenceExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ReturnStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SingleMemberAnnotation, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SingleNameReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SingleTypeReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SingleTypeReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(StringLiteralConcatenation, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(StringLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SuperReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SwitchExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SwitchStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(SynchronizedStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ThisReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(ThrowStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(TrueLiteral, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(TryStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(TypeDeclaration, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(TypeDeclaration, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(TypeDeclaration, CompilationUnitScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(TypeParameter, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(TypeParameter, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(UnaryExpression, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(UnionTypeReference, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(UnionTypeReference, ClassScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(WhileStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- endVisit(YieldStatement, BlockScope) - Method in class spoon.support.compiler.jdt.JDTTreeBuilder
- enter(CtElement) - Method in class spoon.experimental.SpoonifierVisitor
- enter(CtElement) - Method in interface spoon.reflect.visitor.chain.CtScannerListener
-
Called before the scanner enters an element
- enter(CtElement) - Method in class spoon.reflect.visitor.CtBiScannerDefault
- enter(CtElement) - Method in class spoon.reflect.visitor.CtDequeScanner
-
Pushes the element.
- enter(CtElement) - Method in class spoon.reflect.visitor.CtScanner
-
This method is called by the scanner when entering a scanned element.
- enter(CtElement) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
This method is called by
DefaultJavaPrettyPrinter.scan(CtElement)
when entering a scanned element. - enter(CtElement) - Method in class spoon.reflect.visitor.filter.SuperInheritanceHierarchyFunction.DistinctTypeListener
- enter(CtElement) - Method in class spoon.reflect.visitor.filter.VariableReferenceFunction.Visitor
- enter(CtElement) - Method in class spoon.reflect.visitor.filter.VariableScopeFunction.Visitor
- enter(CtElement) - Method in class spoon.reflect.visitor.ImportCleaner.ImportCleanerScanner
- enter(CtElement) - Method in class spoon.reflect.visitor.LexicalScopeScanner
- enter(CtElement) - Method in class spoon.reflect.visitor.ModelConsistencyChecker
-
Enters an element.
- enter(CtElement) - Method in class spoon.support.gui.SpoonTreeBuilder
- enter(CtElement) - Method in class spoon.support.visitor.equals.EqualsVisitor
- enter(CtRole, CtElement) - Method in interface spoon.reflect.visitor.chain.CtScannerListener
-
Called before the scanner enters an element
- enter(CtTypeReference<?>, boolean) - Method in class spoon.reflect.visitor.filter.SuperInheritanceHierarchyFunction.DistinctTypeListener
-
Called before the scanner enters an type
- enterCtExpression(CtExpression<?>) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
Enters an expression.
- enterCtStatement(CtStatement) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
Enters a statement.
- entrySet() - Method in class spoon.support.util.internal.ElementNameMap
- Enum() - Method in interface spoon.reflect.factory.Factory
-
Access to
EnumFactory
subfactory - Enum() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CtEnum
sub-factory. - ENUM - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- ENUM - Variable in class spoon.reflect.factory.TypeFactory
- EnumFactory - Class in spoon.reflect.factory
-
The
CtEnum
sub-factory. - EnumFactory(Factory) - Constructor for class spoon.reflect.factory.EnumFactory
-
Creates a new enum sub-factory.
- env - Variable in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
Environment which Spoon is executed.
- environment - Variable in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- Environment - Interface in spoon.compiler
-
This interface represents the environment in which Spoon is launched - accessible through
Factory.getEnvironment()
. - Environment.PRETTY_PRINTING_MODE - Enum in spoon.compiler
-
Drives how the model is pretty-printed to disk, or when
CtElement.prettyprint()
is called - EQ - Enum constant in enum spoon.reflect.code.BinaryOperatorKind
-
Equality.
- equals(Object) - Method in class spoon.experimental.CtUnresolvedImport
- equals(Object) - Method in class spoon.javadoc.internal.Javadoc
- equals(Object) - Method in class spoon.javadoc.internal.JavadocBlockTag
- equals(Object) - Method in class spoon.javadoc.internal.JavadocDescription
- equals(Object) - Method in class spoon.javadoc.internal.JavadocInlineTag
- equals(Object) - Method in class spoon.javadoc.internal.JavadocSnippet
- equals(Object) - Method in class spoon.support.compiler.FileSystemFile
- equals(Object) - Method in class spoon.support.compiler.FileSystemFolder
- equals(Object) - Method in class spoon.support.compiler.ZipFile
- equals(Object) - Method in class spoon.support.compiler.ZipFolder
- equals(Object) - Method in class spoon.support.reflect.code.CtCommentImpl
-
The comments are not printed during the CtElement equality.
- equals(Object) - Method in class spoon.support.reflect.CtExtendedModifier
- equals(Object) - Method in class spoon.support.reflect.CtModifierHandler
- equals(Object) - Method in class spoon.support.reflect.cu.position.SourcePositionImpl
- equals(Object) - Method in class spoon.support.reflect.declaration.CtElementImpl
- equals(Object) - Method in class spoon.support.reflect.reference.CtReferenceImpl
- equals(Object) - Method in class spoon.support.util.EmptyClearableList
- equals(Object) - Method in class spoon.support.util.ImmutableMapImpl
- equals(Object) - Method in class spoon.support.util.internal.ElementNameMap
- equals(Object) - Method in class spoon.support.util.ModelList
- equals(Object) - Method in class spoon.support.util.ModelSet
-
Deprecated.
- equals(Object) - Method in class spoon.support.visitor.java.internal.TypeReferenceRuntimeBuilderContext
- equals(Object) - Method in class spoon.support.visitor.java.reflect.RtMethod
- equals(Object) - Method in class spoon.support.visitor.java.reflect.RtParameter
-
Compares based on the executable and the index.
- equals(CtElement, CtElement) - Static method in class spoon.support.visitor.equals.EqualsVisitor
- EqualsChecker - Class in spoon.support.visitor.equals
- EqualsChecker() - Constructor for class spoon.support.visitor.equals.EqualsChecker
- EqualsVisitor - Class in spoon.support.visitor.equals
-
Used to check equality between an element and another one.
- EqualsVisitor() - Constructor for class spoon.support.visitor.equals.EqualsVisitor
- EqualsVisitor(EqualsChecker) - Constructor for class spoon.support.visitor.equals.EqualsVisitor
- ERROR - Enum constant in enum spoon.support.Level
- ERROR_MESSAGE_TO_STRING - Static variable in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
- ERROR_MESSAGE_TO_STRING - Static variable in class spoon.support.reflect.declaration.CtElementImpl
- Eval() - Method in interface spoon.reflect.factory.Factory
-
Access to
EvalFactory
subfactory - Eval() - Method in class spoon.reflect.factory.FactoryImpl
-
The evaluators sub-factory.
- EvalFactory - Class in spoon.reflect.factory
-
A factory to create some evaluation utilities on the Spoon metamodel.
- EvalFactory(Factory) - Constructor for class spoon.reflect.factory.EvalFactory
-
Creates the evaluation factory.
- EvalHelper - Class in spoon.support.reflect.eval
- evaluate(I, CtConsumer<R>) - Method in class spoon.reflect.visitor.chain.CtQueryImpl
-
Evaluates this query, ignoring bound input - if any
- evaluate(R) - Method in interface spoon.reflect.eval.PartialEvaluator
-
Partially evaluates an element and all its sub-elements.
- evaluate(R) - Method in class spoon.support.reflect.eval.VisitorPartialEvaluator
- evaluateOn(CtElement...) - Method in interface spoon.reflect.path.CtPath
-
Search for elements matching this CtPatch from start nodes given as parameters.
- evaluateOn(CtElement...) - Method in class spoon.reflect.path.impl.CtPathImpl
- EXCEPTION - Enum constant in enum spoon.reflect.code.CtJavaDocTag.TagType
- exclude(String) - Method in interface spoon.support.compiler.jdt.CompilationUnitFilter
-
Tests if the file with path
path
should be excluded from theCtModel
create bySpoonModelBuilder.build(spoon.compiler.builder.JDTBuilder)
. - Executable() - Method in interface spoon.reflect.factory.Factory
-
Access to
ExecutableFactory
subfactory - Executable() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CtExecutable
sub-factory. - EXECUTABLE_REF - Enum constant in enum spoon.reflect.path.CtRole
- EXECUTABLE_SEPARATOR - Static variable in interface spoon.reflect.declaration.CtExecutable
-
The separator for a string representation of an executable.
- ExecutableFactory - Class in spoon.reflect.factory
-
The
CtExecutable
sub-factory. - ExecutableFactory(Factory) - Constructor for class spoon.reflect.factory.ExecutableFactory
-
Creates a new executable sub-factory.
- ExecutableReferenceFilter - Class in spoon.reflect.visitor.filter
-
This filter matches all the
CtExecutableReference
referencing defined one or moreCtExecutable
s. - ExecutableReferenceFilter() - Constructor for class spoon.reflect.visitor.filter.ExecutableReferenceFilter
-
Creates a new executable reference filter.
- ExecutableReferenceFilter(CtExecutable<?>) - Constructor for class spoon.reflect.visitor.filter.ExecutableReferenceFilter
-
Creates a new executable reference filter.
- ExecutableRuntimeBuilderContext - Class in spoon.support.visitor.java.internal
- ExecutableRuntimeBuilderContext(Executable, CtConstructor<?>) - Constructor for class spoon.support.visitor.java.internal.ExecutableRuntimeBuilderContext
- ExecutableRuntimeBuilderContext(Executable, CtMethod<?>) - Constructor for class spoon.support.visitor.java.internal.ExecutableRuntimeBuilderContext
- exit(CtElement) - Method in class spoon.experimental.SpoonifierVisitor
- exit(CtElement) - Method in interface spoon.reflect.visitor.chain.CtScannerListener
-
This method is called after the element and all its children have been visited.
- exit(CtElement) - Method in class spoon.reflect.visitor.CtBiScannerDefault
- exit(CtElement) - Method in class spoon.reflect.visitor.CtDequeScanner
-
Pops the element.
- exit(CtElement) - Method in class spoon.reflect.visitor.CtScanner
-
This method is called by the scanner when exiting a scanned element.
- exit(CtElement) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
This method is called by
DefaultJavaPrettyPrinter.scan(CtElement)
when entering a scanned element. - exit(CtElement) - Method in class spoon.reflect.visitor.filter.SuperInheritanceHierarchyFunction.DistinctTypeListener
- exit(CtElement) - Method in class spoon.reflect.visitor.ImportCleaner.ImportCleanerScanner
- exit(CtElement) - Method in class spoon.reflect.visitor.LexicalScopeScanner
- exit(CtElement) - Method in class spoon.reflect.visitor.ModelConsistencyChecker
-
Exits an element.
- exit(CtElement) - Method in class spoon.support.gui.SpoonTreeBuilder
- exit(CtElement) - Method in class spoon.support.reflect.eval.InlinePartialEvaluator
- exit(CtElement) - Method in class spoon.support.reflect.eval.VisitorPartialEvaluator
- exit(CtRole, CtElement) - Method in interface spoon.reflect.visitor.chain.CtScannerListener
-
This method is called after the element and all its children have been visited.
- exit(CtTypeReference<?>, boolean) - Method in class spoon.reflect.visitor.filter.SuperInheritanceHierarchyFunction.DistinctTypeListener
-
This method is called after the element and all its children have been visited.
- exitCtExpression(CtExpression<?>) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
Exits an expression.
- exitCtStatement(CtStatement) - Method in class spoon.reflect.visitor.DefaultJavaPrettyPrinter
-
Exits a statement.
- exitParent(ASTPair) - Method in class spoon.support.compiler.jdt.ParentExiter
- expand(DefaultMutableTreeNode) - Method in class spoon.support.gui.SpoonModelTree
- expandAll(DefaultMutableTreeNode) - Method in class spoon.support.gui.SpoonModelTree
-
expand all AST nodes in the GUI
- Experimental - Annotation Type in spoon.support
-
Tells that a type has recently been introduced and may be subject to non-backward compatible changes without deprecation.
- explicit(ModifierKind) - Static method in class spoon.support.reflect.CtExtendedModifier
-
Creates an extended modifier of the given kind that is explicit.
- EXPORTED_PACKAGE - Enum constant in enum spoon.reflect.path.CtRole
- expression() - Method in class spoon.template.ExpressionTemplate
-
This method must be implemented to define the template expression.
- EXPRESSION - Enum constant in enum spoon.reflect.path.CtRole
- ExpressionTemplate<T> - Class in spoon.template
-
This class represents an expression template parameter expressed in Java.
- ExpressionTemplate() - Constructor for class spoon.template.ExpressionTemplate
-
Creates a new expression template parameter.
- EXTENDS - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- ExtensionTemplate - Class in spoon.template
-
Inserts all the methods, fields, constructors, initialization blocks (if target is a class), inner types, and super interfaces (except
Template
) from a given template by substituting all the template parameters by their values. - ExtensionTemplate() - Constructor for class spoon.template.ExtensionTemplate
- extract(File) - Method in class spoon.support.compiler.ZipFolder
-
physically extracts on disk all files of this zip file in the destinationDir `destDir`
F
- factory - Variable in class spoon.Launcher
- factory - Variable in class spoon.pattern.internal.DefaultGenerator
- factory - Variable in class spoon.reflect.factory.SubFactory
- factory - Variable in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- factory - Variable in class spoon.support.reflect.declaration.CtElementImpl
-
this field `factory` must be transient in order to allow proper serialization the factory is restored in all AST nodes in
SerializationModelStreamer
- Factory - Interface in spoon.reflect.factory
-
Provides the sub-factories required by Spoon.
- FactoryAccessor - Interface in spoon.processing
-
This interface represents an object that can access the meta-model factory.
- FactoryCompilerConfig - Class in spoon.support.compiler.jdt
- FactoryCompilerConfig() - Constructor for class spoon.support.compiler.jdt.FactoryCompilerConfig
- FactoryImpl - Class in spoon.reflect.factory
-
Implements
Factory
- FactoryImpl(CoreFactory, Environment) - Constructor for class spoon.reflect.factory.FactoryImpl
-
Should not be called directly.
- fail(CtRole, Object, Object) - Method in class spoon.support.visitor.equals.EqualsVisitor
- FAIL - Enum constant in enum spoon.pattern.ConflictResolutionMode
-
Throw
SpoonException
if a conflict happens, it is the default in most cases. - FAIL - Enum constant in enum spoon.reflect.visitor.chain.QueryFailurePolicy
-
Throws ClassCastException when output type of previous step cannot be assigned to input type of next step
- failOnClassNotFound(boolean) - Method in class spoon.reflect.visitor.filter.SubInheritanceHierarchyFunction
- failOnClassNotFound(boolean) - Method in class spoon.reflect.visitor.filter.SuperInheritanceHierarchyFunction
- failOnClassNotFound(boolean) - Method in class spoon.support.visitor.SubInheritanceHierarchyResolver
- failurePolicy(QueryFailurePolicy) - Method in interface spoon.reflect.visitor.chain.CtQuery
-
Defines whether this query will throw
ClassCastException
when the output of the previous step cannot be cast to type of input of next step. - failurePolicy(QueryFailurePolicy) - Method in class spoon.reflect.visitor.chain.CtQueryImpl
- Field() - Method in interface spoon.reflect.factory.Factory
-
Access to
FieldFactory
subfactory - Field() - Method in class spoon.reflect.factory.FactoryImpl
-
The
CtField
sub-factory. - FIELD - Enum constant in enum spoon.reflect.declaration.CtAnnotatedElementType
-
Field declaration (includes enum constants)
- FIELD - Enum constant in enum spoon.reflect.declaration.CtImportKind
- FIELD - Enum constant in enum spoon.reflect.path.CtRole
- FIELD_SEPARATOR - Static variable in interface spoon.reflect.declaration.CtField
-
The separator for a string representation of a field.
- FieldAccessFilter - Class in spoon.reflect.visitor.filter
-
This simple filter matches all the accesses to a given field.
- FieldAccessFilter(CtFieldReference<?>) - Constructor for class spoon.reflect.visitor.filter.FieldAccessFilter
-
Creates a new field access filter.
- FieldFactory - Class in spoon.reflect.factory
-
The
CtField
sub-factory. - FieldFactory(Factory) - Constructor for class spoon.reflect.factory.FieldFactory
-
Creates a new field sub-factory.
- fieldImports - Variable in class spoon.reflect.visitor.ImportScannerImpl
- fieldPrefix - Static variable in class spoon.support.template.Parameters
-
The prefix "_FIELD_" for a parameter that represents a fields in order to avoid name clashes.
- FieldReferenceFunction - Class in spoon.reflect.visitor.filter
-
This Query expects a
CtField
as input and returns allCtFieldReference
s, which refers this input. - FieldReferenceFunction() - Constructor for class spoon.reflect.visitor.filter.FieldReferenceFunction
- FieldReferenceFunction(CtField<?>) - Constructor for class spoon.reflect.visitor.filter.FieldReferenceFunction
- FIELDS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- FieldScopeFunction - Class in spoon.reflect.visitor.filter
-
This Query expects a
CtField
as input and returns all CtElements, which are in visibility scope of that field. - FieldScopeFunction() - Constructor for class spoon.reflect.visitor.filter.FieldScopeFunction
- FILE - Enum constant in enum spoon.reflect.code.CtComment.CommentType
-
before the package line (typically the license)
- FileAssert - Class in spoon.testing
- FileAssert(File) - Constructor for class spoon.testing.FileAssert
- FileCompilerConfig - Class in spoon.support.compiler.jdt
- FileCompilerConfig(List<SpoonFile>) - Constructor for class spoon.support.compiler.jdt.FileCompilerConfig
- FileGenerator<T extends CtElement> - Interface in spoon.processing
-
This interface should be implemented by processing tasks that generate new files as processing results.
- files - Variable in class spoon.support.compiler.VirtualFolder
- FILES - Static variable in interface spoon.SpoonModelBuilder.InputType
- filesToBeIgnored - Variable in class spoon.support.compiler.jdt.JDTBatchCompiler
- FileSystemFile - Class in spoon.support.compiler
- FileSystemFile(File) - Constructor for class spoon.support.compiler.FileSystemFile
- FileSystemFile(String) - Constructor for class spoon.support.compiler.FileSystemFile
- FileSystemFolder - Class in spoon.support.compiler
- FileSystemFolder(File) - Constructor for class spoon.support.compiler.FileSystemFolder
- FileSystemFolder(String) - Constructor for class spoon.support.compiler.FileSystemFolder
- Filter<T extends CtElement> - Interface in spoon.reflect.visitor
-
This interface defines a filter for program elements.
- filterChildren(Filter<P>) - Method in class spoon.support.reflect.declaration.CtElementImpl
- filterChildren(Filter<R>) - Method in class spoon.reflect.CtModelImpl
- filterChildren(Filter<R>) - Method in interface spoon.reflect.visitor.chain.CtQuery
-
Recursively scans all children elements of an input element.
- filterChildren(Filter<R>) - Method in interface spoon.reflect.visitor.chain.CtQueryable
- filterChildren(Filter<R>) - Method in class spoon.reflect.visitor.chain.CtQueryImpl
- FilteringFolder - Class in spoon.support.compiler
-
A filtering resource, see https://github.com/INRIA/spoon/issues/877
- FilteringFolder() - Constructor for class spoon.support.compiler.FilteringFolder
- FilteringOperator - Enum in spoon.reflect.visitor.filter
-
This enumeration defines the possible composition operators for filters.
- FINAL - Enum constant in enum spoon.reflect.declaration.ModifierKind
-
The modifier final
- FINAL - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- FINALIZER - Enum constant in enum spoon.reflect.path.CtRole
- find() - Method in class spoon.reflect.visitor.AccessibleVariablesFinder
- find(CtElement) - Method in class spoon.template.TemplateMatcher
-
Finds all target program sub-trees that correspond to a template.
- findClass() - Method in class spoon.support.reflect.reference.CtTypeReferenceImpl
-
Finds the class requested in
CtTypeReferenceImpl.getActualClass()
. - findIFragmentIndexCorrespondingToEvent(PrinterEvent) - Method in class spoon.support.sniper.internal.SourceFragmentContextNormal
-
Looks for the child token which fits to
PrinterEvent
`event` - findIFragmentIndexCorrespondingToEvent(PrinterEvent) - Method in class spoon.support.sniper.internal.SourceFragmentContextList
- findIndexOfNextChildTokenByType(TokenType) - Method in class spoon.support.sniper.internal.SourceFragmentContextNormal
-
looks for next child token which contains expected token type
- findIndexOfNextChildTokenByValue(String) - Method in class spoon.support.sniper.internal.SourceFragmentContextNormal
-
looks for next child token which contains exactly same token
- findIndexOfNextChildTokenOfElement(SourcePositionHolder) - Method in class spoon.support.sniper.internal.SourceFragmentContextNormal
-
looks for next child token, which has element `element
- findIndexOfNextChildTokenOfRole(int, CtRole) - Method in class spoon.support.sniper.internal.SourceFragmentContextNormal
-
looks for next child token which has role `role`
- findNextNonWhitespace(char[], int, int) - Static method in class spoon.support.compiler.jdt.PositionBuilder
- FineModelChangeListener - Interface in spoon.support.modelobs
-
Can be subclassed by clients who want to be notified on all changes in AST nodes
- first() - Method in interface spoon.reflect.visitor.chain.CtQuery
-
Actually evaluates the query and returns first elements produced in the last step.
After the first element is found, the query evaluation is terminated. - first() - Method in class spoon.reflect.visitor.chain.CtQueryImpl
- first(Class<R>) - Method in interface spoon.reflect.visitor.chain.CtQuery
-
Same as
CtQuery.first()
, but with static typing on the return type and the final filtering, which matches only the first result, which is assignable from that return type. - first(Class<R>) - Method in class spoon.reflect.visitor.chain.CtQueryImpl
- FixedOrderBasedOnFileNameCompilationUnitComparator - Class in spoon.support.comparator
- FixedOrderBasedOnFileNameCompilationUnitComparator() - Constructor for class spoon.support.comparator.FixedOrderBasedOnFileNameCompilationUnitComparator
- FLOAT - Variable in class spoon.reflect.factory.TypeFactory
- FLOAT_PRIMITIVE - Variable in class spoon.reflect.factory.TypeFactory
- floatPrimitiveType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the float primitive type.
- floatType() - Method in class spoon.reflect.factory.TypeFactory
-
Returns a reference on the float type.
- FluentLauncher - Class in spoon
-
FluentLauncher provides a different, fluent interface for the launcher class.
- FluentLauncher() - Constructor for class spoon.FluentLauncher
-
Creates a new FluentLauncher, wrapping default
Launcher
. - FluentLauncher(SpoonAPI) - Constructor for class spoon.FluentLauncher
-
Creates a new FluentLauncher, wrapping the given launcher.
- FOR - Enum constant in enum spoon.reflect.visitor.JavaIdentifiers
- FOR_INIT - Enum constant in enum spoon.reflect.path.CtRole
- FOR_INIT_STATEMENTS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- FOR_UPDATE - Enum constant in enum spoon.reflect.path.CtRole
- FOR_UPDATE_STATEMENTS_CONTAINER_DEFAULT_CAPACITY - Static variable in class spoon.reflect.ModelElementContainerDefaultCapacities
- ForceFullyQualifiedProcessor - Class in spoon.reflect.visitor
-
Forces fully qualified identifiers by making many elements explicit (by calling setImplicit(false)).
- ForceFullyQualifiedProcessor() - Constructor for class spoon.reflect.visitor.ForceFullyQualifiedProcessor
- ForceImportProcessor - Class in spoon.reflect.visitor
-
Marks all types references as implicit so all types will get imported.
- ForceImportProcessor() - Constructor for class spoon.reflect.visitor.ForceImportProcessor
- forceWildcardGenerics() - Method in class spoon.reflect.visitor.PrintingContext
- forceWildcardGenerics(boolean) - Method in class spoon.reflect.visitor.PrintingContext.Writable
- forEach(CtConsumer<R>) - Method in interface spoon.reflect.visitor.chain.CtQuery
-
Actually evaluates the query and for each produced output element of the last step, calls `consumer.accept(outputElement)`.
- forEach(CtConsumer<R>) - Method in class spoon.reflect.visitor.chain.CtQueryImpl
- FOREACH_VARIABLE - Enum constant in enum spoon.reflect.path.CtRole
- forEachElementByName(String, Function<? super CtNamedElement, T>) - Method in interface spoon.reflect.visitor.LexicalScope
- forEachMatch(Object, CtConsumer<Match>) - Method in class spoon.pattern.Pattern
-
Finds all target program sub-trees that correspond to a template and calls consumer.accept(Match)
- forEachMatch(CtElement, CtConsumer<Match>) - Method in class spoon.template.TemplateMatcher
-
Finds all target program sub-trees that correspond to a template and calls consumer.accept(matchingElement, )
- ForEachNode - Class in spoon.pattern.internal.node
-
Pattern node of multiple occurrences of the same model, just with different parameters.
- ForEachNode() - Constructor for class spoon.pattern.internal.node.ForEachNode
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.ConstantNode
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.ElementNode
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.ForEachNode
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.ListOfNodes
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.MapEntryNode
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.ParameterNode
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in interface spoon.pattern.internal.node.RootNode
-
Calls consumer for each pair of parameter definition (
ParameterInfo
) andRootNode
, which uses it - forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.StringNode
- forEachParameterInfo(BiConsumer<ParameterInfo, RootNode>) - Method in class spoon.pattern.internal.node.SwitchNode
- forEachRoleHandler(Consumer<RoleHandler>) - Static method in class spoon.reflect.meta.impl.RoleHandlerHelper
- forEachSubTypeInPackage(CtConsumer<T>) - Method in class spoon.support.visitor.SubInheritanceHierarchyResolver
-
Calls `outputConsumer.apply(subType)` for each sub type of the targetSuperTypes that are found in `inputPackage`.
- fromBoolean(Boolean) - Static method in enum spoon.support.sniper.internal.ModificationStatus
- fromElement(CtElement) - Method in class spoon.reflect.path.CtElementPathBuilder
-
Build absolute path to a CtElement el.
- fromElement(CtElement, CtElement) - Method in class spoon.reflect.path.CtElementPathBuilder
-
Build path to a CtElement el, from one of its parent.
- fromName(String) - Static method in enum spoon.reflect.path.CtRole
-
Get the
CtRole
associated to the field name - fromString(String) - Static method in enum spoon.OutputType
-
Gets the output type from an option string.
- fromString(String) - Method in class spoon.reflect.path.CtPathStringBuilder
-
Build path from a string representation.
- fromText(String) - Static method in class spoon.javadoc.internal.JavadocInlineTag
-
parses a Javadoc tag
- FULLYQUALIFIED - Enum constant in enum spoon.compiler.Environment.PRETTY_PRINTING_MODE
-
force everything to be fully-qualified
G
- GE - Enum constant in enum spoon.reflect.code.BinaryOperatorKind
-
Greater or equal comparison.
- generate(String, Map<String, Object>) - Method in interface spoon.pattern.Generator
-
Generates a type with qualified name `typeQualifiedName` by replacing the generator parameters with the arguments given in `params`.
- generate(String, Map<String, Object>) - Method in class spoon.pattern.internal.DefaultGenerator
- generate(Map<String, Object>) - Method in interface spoon.pattern.Generator
-
Main method to generate a new AST made from substituting of parameters by the values in `params`
- generate(Map<String, Object>) - Method in class spoon.pattern.internal.DefaultGenerator
- generate(ImmutableMap) - Method in interface spoon.pattern.Generator
-
Utility method that provides the same feature as
Generator.generate(Map)
, but with aImmutableMap
as parameter (a Spoon elegant utility type) - generate(ImmutableMap) - Method in class spoon.pattern.internal.DefaultGenerator
- generateInlineTargets(DefaultGenerator, ResultHolder<T>, ImmutableMap) - Method in class spoon.pattern.internal.node.ForEachNode
- generateInlineTargets(DefaultGenerator, ResultHolder<T>, ImmutableMap) - Method in interface spoon.pattern.internal.node.InlineNode
-
Generates inline statements of this inline
RootNode
. - generateInlineTargets(DefaultGenerator, ResultHolder<T>, ImmutableMap) - Method in class spoon.pattern.internal.node.SwitchNode
- generateProcessedSourceFiles(OutputType) - Method in interface spoon.SpoonModelBuilder
-
Generates the source code associated to the classes stored in this compiler's factory.
- generateProcessedSourceFiles(OutputType) - Method in class spoon.support.compiler.jdt.JDTBasedSpoonCompiler
- generateProcessedSourceFiles(OutputType, Filter<CtType<?>>) - Method in interface spoon.SpoonModelBuilder
CtExtendedModifier.explicit(ModifierKind)
to create an explicit modifier.