Uses of Interface
spoon.reflect.reference.CtReference
Package
Description
this is unstable code, subject to potential complete redesign, not only in snapshots but also in releases.
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines the references to program elements for the meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains a set of useful filters when querying the model.
-
Uses of CtReference in spoon.experimental
Modifier and TypeMethodDescription<T extends CtImport>
TCtUnresolvedImport.setReference(CtReference reference)
-
Uses of CtReference in spoon.reflect.declaration
Modifier and TypeMethodDescriptionCtImport.getReference()
Returns the reference of the import.CtNamedElement.getReference()
Returns the corresponding reference.Modifier and TypeMethodDescription<T extends CtImport>
TCtImport.setReference(CtReference reference)
Sets the reference of the import. -
Uses of CtReference in spoon.reflect.factory
Modifier and TypeMethodDescription<R extends CtReference, E extends CtNamedElement>
List<R>CodeFactory.getReferences(List<E> elements)
Gets a list of references from a list of elements.Modifier and TypeMethodDescriptionFactory.createImport(CtReference reference)
FactoryImpl.createImport(CtReference reference)
TypeFactory.createImport(CtReference reference)
Creates an import declaration. -
Uses of CtReference in spoon.reflect.reference
Modifier and TypeInterfaceDescriptioninterface
This interface defines a reference to an array.interface
This interface defines a reference toCtCatchVariable
.interface
This interface defines a reference to aCtExecutable
.interface
This interface defines a reference to aCtField
.interface
This interface defines a reference to an intersection type in generics or in casts.interface
This interface defines a reference toCtLocalVariable
.interface
Represents a reference to aCtModule
interface
This interface defines a reference to aCtPackage
.interface
This interface defines a reference to aCtParameter
of a method.interface
This interface defines a import reference to all static type members of a type.
Example:somePackage.Type.*;
interface
This interface defines a reference to a type parameter (aka generics).interface
This interface defines a reference to aCtType
or sub-type.interface
This interface defines a reference to an unboundCtVariable
.interface
This interface defines a reference to aCtVariable
or sub-type.interface
Represents a wildcard in generic type annotations, i.e.Modifier and TypeMethodDescription<T extends CtReference>
TCtArrayTypeReference.setSimpleName(String simpleName)
The simple name of an ArrayTypeReference is unsettable as it's retrieved from its component type.<T extends CtReference>
TCtReference.setSimpleName(String simpleName)
Sets the name of referenced element.<T extends CtReference>
TCtTypeMemberWildcardImportReference.setSimpleName(String simpleName)
<C extends CtReference>
CCtWildcardReference.setSimpleName(String simpleName)
-
Uses of CtReference in spoon.reflect.visitor
Modifier and TypeMethodDescriptionstatic <T extends CtReference>
List<T>Query.getReferences(CtElement rootElement, Filter<T> filter)
Returns all the program element references that match the filter.static <R extends CtReference>
List<R>Query.getReferences(Factory factory, Filter<R> filter)
Within a given factory, returns all the program element references that match the filter.Modifier and TypeMethodDescriptionboolean
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. -
Uses of CtReference in spoon.reflect.visitor.filter
Modifier and TypeClassDescriptionclass
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>
A filter forCtReference
s that compare equal to the reference provided in the constructor.class
ReferenceTypeFilter<T extends CtReference>
This simple filter matches all the references of a given type. -
Uses of CtReference in spoon.support.reflect.declaration
Modifier and TypeMethodDescription<T extends CtImport>
TCtImportImpl.setReference(CtReference reference)
-
Uses of CtReference in spoon.support.reflect.reference
Modifier and TypeClassDescriptionclass
class
class
class
class
class
An implementation forCtLocalVariableReference
.class
class
class
class
class
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
class
class
represents a reference to an unbound field (used when no full classpath is availableclass
class
Modifier and TypeMethodDescription<T extends CtReference>
TCtArrayTypeReferenceImpl.setSimpleName(String simplename)
<T extends CtReference>
TCtReferenceImpl.setSimpleName(String simplename)
<T extends CtReference>
TCtTypeMemberWildcardImportReferenceImpl.setSimpleName(String simpleName)
<T extends CtReference>
TCtWildcardReferenceImpl.setSimpleName(String simplename)
-
Uses of CtReference in spoon.support.visitor
-
Uses of CtReference in spoon.support.visitor.clone
Modifier and TypeMethodDescriptionvoid
CloneBuilder.scanCtReference(CtReference reference)
Scans an abstract reference. -
Uses of CtReference in spoon.support.visitor.equals