Uses of Interface
spoon.reflect.reference.CtReference
Packages that use 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
Methods in spoon.experimental that return CtReferenceMethods in spoon.experimental with parameters of type CtReferenceModifier and TypeMethodDescription<T extends CtImport>
TCtUnresolvedImport.setReference(CtReference reference)
-
Uses of CtReference in spoon.reflect.declaration
Methods in spoon.reflect.declaration that return CtReferenceModifier and TypeMethodDescriptionCtImport.getReference()
Returns the reference of the import.CtNamedElement.getReference()
Returns the corresponding reference.Methods in spoon.reflect.declaration with parameters of type CtReferenceModifier and TypeMethodDescription<T extends CtImport>
TCtImport.setReference(CtReference reference)
Sets the reference of the import. -
Uses of CtReference in spoon.reflect.factory
Methods in spoon.reflect.factory with type parameters of type CtReferenceModifier 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.Methods in spoon.reflect.factory with parameters of type CtReferenceModifier and TypeMethodDescriptionFactory.createImport(CtReference reference)
FactoryImpl.createImport(CtReference reference)
TypeFactory.createImport(CtReference reference)
Creates an import declaration. -
Uses of CtReference in spoon.reflect.reference
Subinterfaces of CtReference in spoon.reflect.referenceModifier 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.Methods in spoon.reflect.reference with type parameters of type CtReferenceModifier 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)
Methods in spoon.reflect.reference that return CtReference -
Uses of CtReference in spoon.reflect.visitor
Methods in spoon.reflect.visitor with type parameters of type CtReferenceModifier 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.Methods in spoon.reflect.visitor with parameters of type CtReferenceModifier 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
Classes in spoon.reflect.visitor.filter with type parameters of type CtReferenceModifier 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.Constructors in spoon.reflect.visitor.filter with parameters of type CtReference -
Uses of CtReference in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration that return CtReferenceMethods in spoon.support.reflect.declaration with parameters of type CtReferenceModifier and TypeMethodDescription<T extends CtImport>
TCtImportImpl.setReference(CtReference reference)
-
Uses of CtReference in spoon.support.reflect.reference
Classes in spoon.support.reflect.reference that implement CtReferenceModifier 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
Methods in spoon.support.reflect.reference with type parameters of type CtReferenceModifier 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)
Methods in spoon.support.reflect.reference that return CtReference -
Uses of CtReference in spoon.support.visitor
Methods in spoon.support.visitor with parameters of type CtReference -
Uses of CtReference in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtReferenceModifier and TypeMethodDescriptionvoid
CloneBuilder.scanCtReference(CtReference reference)
Scans an abstract reference. -
Uses of CtReference in spoon.support.visitor.equals
Methods in spoon.support.visitor.equals with parameters of type CtReference