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 TypeInterfaceDescriptioninterfaceThis interface defines a reference to an array.interfaceThis interface defines a reference toCtCatchVariable.interfaceThis interface defines a reference to aCtExecutable.interfaceThis interface defines a reference to aCtField.interfaceThis interface defines a reference to an intersection type in generics or in casts.interfaceThis interface defines a reference toCtLocalVariable.interfaceRepresents a reference to aCtModuleinterfaceThis interface defines a reference to aCtPackage.interfaceThis interface defines a reference to aCtParameterof a method.interfaceThis interface defines a import reference to all static type members of a type.
Example:somePackage.Type.*;interfaceThis interface defines a reference to a type parameter (aka generics).interfaceThis interface defines a reference to aCtTypeor sub-type.interfaceThis interface defines a reference to an unboundCtVariable.interfaceThis interface defines a reference to aCtVariableor sub-type.interfaceRepresents 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 TypeMethodDescriptionbooleanImportScanner.isImported(CtReference ref)Checks if the type is already imported.booleanImportScannerImpl.isImported(CtReference ref)protected booleanImportScannerImpl.isTypeInCollision(CtReference ref, boolean fqnMode)Test if the reference can be imported, i.e.voidCtInheritanceScanner.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 TypeClassDescriptionclassAbstractReferenceFilter<T extends CtReference>This class defines an abstract reference filter that needs to be subclassed in order to define the matching criteria.classDirectReferenceFilter<T extends CtReference>A filter forCtReferences that compare equal to the reference provided in the constructor.classReferenceTypeFilter<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 TypeClassDescriptionclassclassclassclassclassclassAn implementation forCtLocalVariableReference.classclassclassclassclassThis 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.*;classclassclassrepresents a reference to an unbound field (used when no full classpath is availableclassclassMethods 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 TypeMethodDescriptionvoidCloneBuilder.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