Package | Description |
---|---|
spoon.experimental |
this is unstable code, subject to potential complete redesign, not only in snapshots but also in releases.
|
spoon.reflect.declaration |
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
|
spoon.reflect.factory |
This package defines all the sub-factories for the Spoon meta-model.
|
spoon.reflect.reference |
This package defines the references to program elements for the meta-model.
|
spoon.reflect.visitor |
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
|
spoon.reflect.visitor.filter |
This package contains a set of useful filters when querying the model.
|
spoon.support.reflect.declaration | |
spoon.support.reflect.reference | |
spoon.support.visitor | |
spoon.support.visitor.clone | |
spoon.support.visitor.equals |
Modifier and Type | Method and Description |
---|---|
CtReference |
CtUnresolvedImport.getReference() |
Modifier and Type | Method and Description |
---|---|
<T extends CtImport> |
CtUnresolvedImport.setReference(CtReference reference) |
Modifier and Type | Method and Description |
---|---|
CtReference |
CtImport.getReference()
Returns the reference of the import.
|
CtReference |
CtNamedElement.getReference()
Returns the corresponding reference.
|
Modifier and Type | Method and Description |
---|---|
<T extends CtImport> |
CtImport.setReference(CtReference reference)
Sets the reference of the import.
|
Modifier and Type | Method and Description |
---|---|
<R extends CtReference,E extends CtNamedElement> |
CodeFactory.getReferences(java.util.List<E> elements)
Gets a list of references from a list of elements.
|
Modifier and Type | Method and Description |
---|---|
CtImport |
TypeFactory.createImport(CtReference reference)
Creates an import declaration.
|
CtImport |
Factory.createImport(CtReference reference) |
CtImport |
FactoryImpl.createImport(CtReference reference) |
Modifier and Type | Interface and Description |
---|---|
interface |
CtArrayTypeReference<T>
This interface defines a reference to an array.
|
interface |
CtCatchVariableReference<T>
This interface defines a reference to
CtCatchVariable . |
interface |
CtExecutableReference<T>
This interface defines a reference to a
CtExecutable . |
interface |
CtFieldReference<T>
This interface defines a reference to a
CtField . |
interface |
CtIntersectionTypeReference<T>
This interface defines a reference to an intersection type in generics or in casts.
|
interface |
CtLocalVariableReference<T>
This interface defines a reference to
CtLocalVariable . |
interface |
CtModuleReference
Represents a reference to a
CtModule |
interface |
CtPackageReference
This interface defines a reference to a
CtPackage . |
interface |
CtParameterReference<T>
This interface defines a reference to a
CtParameter of a method. |
interface |
CtTypeMemberWildcardImportReference
This interface defines a import reference to all static type members of a type.
Example: somePackage.Type.*; |
interface |
CtTypeParameterReference
This interface defines a reference to a type parameter (aka generics).
|
interface |
CtTypeReference<T>
This interface defines a reference to a
CtType or sub-type. |
interface |
CtUnboundVariableReference<T>
This interface defines a reference to an unbound
CtVariable . |
interface |
CtVariableReference<T>
This interface defines a reference to a
CtVariable or sub-type. |
interface |
CtWildcardReference
Represents a wildcard in generic type annotations, i.e.
|
Modifier and Type | Method and Description |
---|---|
<C extends CtReference> |
CtWildcardReference.setSimpleName(java.lang.String simpleName) |
<T extends CtReference> |
CtTypeMemberWildcardImportReference.setSimpleName(java.lang.String simpleName) |
<T extends CtReference> |
CtArrayTypeReference.setSimpleName(java.lang.String simpleName)
The simple name of an ArrayTypeReference is unsettable as it's retrieved from its component type.
|
<T extends CtReference> |
CtReference.setSimpleName(java.lang.String simpleName)
Sets the name of referenced element.
|
Modifier and Type | Method and Description |
---|---|
CtReference |
CtReference.clone() |
Modifier and Type | Method and Description |
---|---|
static <T extends CtReference> |
Query.getReferences(CtElement rootElement,
Filter<T> filter)
Returns all the program element references that match the filter.
|
static <R extends CtReference> |
Query.getReferences(Factory factory,
Filter<R> filter)
Within a given factory, returns all the program element references that
match the filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ImportScanner.isImported(CtReference ref)
Checks if the type is already imported.
|
boolean |
ImportScannerImpl.isImported(CtReference ref) |
protected boolean |
ImportScannerImpl.isTypeInCollision(CtReference ref,
boolean fqnMode)
Test if the reference can be imported, i.e.
|
void |
CtInheritanceScanner.scanCtReference(CtReference reference)
Scans an abstract reference.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractReferenceFilter<T extends CtReference>
This class defines an abstract reference filter that needs to be subclassed
in order to define the matching criteria.
|
class |
DirectReferenceFilter<T extends CtReference>
This simple filter matches all the references to a given element by using
reference equality.
|
class |
ReferenceTypeFilter<T extends CtReference>
This simple filter matches all the references of a given type.
|
Constructor and Description |
---|
DirectReferenceFilter(CtReference reference)
Creates the filter.
|
Modifier and Type | Method and Description |
---|---|
CtReference |
CtImportImpl.getReference() |
CtReference |
CtNamedElementImpl.getReference() |
Modifier and Type | Method and Description |
---|---|
<T extends CtImport> |
CtImportImpl.setReference(CtReference reference) |
Modifier and Type | Class and Description |
---|---|
class |
CtArrayTypeReferenceImpl<T> |
class |
CtCatchVariableReferenceImpl<T> |
class |
CtExecutableReferenceImpl<T> |
class |
CtFieldReferenceImpl<T> |
class |
CtIntersectionTypeReferenceImpl<T> |
class |
CtLocalVariableReferenceImpl<T>
An implementation for
CtLocalVariableReference . |
class |
CtModuleReferenceImpl |
class |
CtPackageReferenceImpl |
class |
CtParameterReferenceImpl<T> |
class |
CtReferenceImpl |
class |
CtTypeMemberWildcardImportReferenceImpl
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.*;
|
class |
CtTypeParameterReferenceImpl |
class |
CtTypeReferenceImpl<T> |
class |
CtUnboundVariableReferenceImpl<T>
represents a reference to an unbound field (used when no full classpath is available
|
class |
CtVariableReferenceImpl<T> |
class |
CtWildcardReferenceImpl |
Modifier and Type | Method and Description |
---|---|
<T extends CtReference> |
CtWildcardReferenceImpl.setSimpleName(java.lang.String simplename) |
<T extends CtReference> |
CtTypeMemberWildcardImportReferenceImpl.setSimpleName(java.lang.String simpleName) |
<T extends CtReference> |
CtReferenceImpl.setSimpleName(java.lang.String simplename) |
<T extends CtReference> |
CtArrayTypeReferenceImpl.setSimpleName(java.lang.String simplename) |
Modifier and Type | Method and Description |
---|---|
CtReference |
CtReferenceImpl.clone() |
Modifier and Type | Method and Description |
---|---|
void |
HashcodeVisitor.scanCtReference(CtReference e) |
Modifier and Type | Method and Description |
---|---|
void |
CloneBuilder.scanCtReference(CtReference reference)
Scans an abstract reference.
|
Modifier and Type | Method and Description |
---|---|
void |
EqualsChecker.scanCtReference(CtReference reference) |
Copyright © 2007–2021 Inria. All rights reserved.