Uses of Interface
spoon.reflect.declaration.CtField
Packages that use CtField
Package
Description
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.
This package contains some default implementations for commonly used processing tasks.
This package defines the substitution and matching engines for Java templates.
This package defines a framework for well-typed pure-Java templates.
-
Uses of CtField in spoon.refactoring
Methods in spoon.refactoring with parameters of type CtFieldModifier and TypeMethodDescription<T> void
MethodInvocationSearch.visitCtField(CtField<T> field)
-
Uses of CtField in spoon.reflect.declaration
Subinterfaces of CtField in spoon.reflect.declarationModifier and TypeInterfaceDescriptioninterface
CtEnumValue<T>
Corresponds to one enum value specified in an enumeration.Methods in spoon.reflect.declaration that return CtFieldModifier and TypeMethodDescriptionCtField.clone()
CtField<?>
Gets a field from its name.CtField<?>
CtRecordComponent.toField()
Converts the component to an implicit field.The returned field is a view and has no parent.Methods in spoon.reflect.declaration that return types with arguments of type CtFieldModifier and TypeMethodDescriptionCtType.getFields()
Returns the fields that are directly declared by this class or interface.Methods in spoon.reflect.declaration with parameters of type CtFieldModifier and TypeMethodDescriptionadd a field at a given position.add a field at the end of the field list.CtType.addFieldAtTop(CtField<F> field)
Adds a field at the top of the type (before static block).CtTypeParameter.addFieldAtTop(CtField<F> field)
<F> boolean
CtType.removeField(CtField<F> field)
remove a FieldMethod parameters in spoon.reflect.declaration with type arguments of type CtField -
Uses of CtField in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtFieldModifier and TypeMethodDescription<T> CtField<T>
FieldFactory.create(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name)
Creates a field.<T> CtField<T>
FieldFactory.create(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference<T> type, String name, CtExpression<T> defaultExpression)
Creates a field.<T> CtField<T>
Creates a field by copying an existing field.<T> CtField<T>
CodeFactory.createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)
Creates a field.<T> CtField<T>
Factory.createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)
<T> CtField<T>
FactoryImpl.createCtField(String name, CtTypeReference<T> type, String exp, ModifierKind... visibilities)
<T> CtField<T>
CoreFactory.createField()
Creates a field.<T> CtField<T>
Factory.createField()
Factory.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name)
Factory.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)
Factory.createField(CtType<?> target, CtField source)
<T> CtField<T>
FactoryImpl.createField()
FactoryImpl.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name)
FactoryImpl.createField(CtType<?> target, Set<ModifierKind> modifiers, CtTypeReference type, String name, CtExpression defaultExpression)
FactoryImpl.createField(CtType<?> target, CtField source)
Methods in spoon.reflect.factory with parameters of type CtFieldModifier and TypeMethodDescription<T> CtField<T>
Creates a field by copying an existing field.Factory.createField(CtType<?> target, CtField source)
FactoryImpl.createField(CtType<?> target, CtField source)
<T> CtFieldReference<T>
FieldFactory.createReference(CtField<T> field)
Creates a field reference from an existing field. -
Uses of CtField in spoon.reflect.reference
Methods in spoon.reflect.reference that return CtFieldModifier and TypeMethodDescriptionCtFieldReference.getDeclaration()
CtFieldReference.getFieldDeclaration()
Returns theCtField
that corresponds to the reference even if its declaring type isn't in the Spoon source path (in this case, the Spoon elements are built with runtime reflection) -
Uses of CtField in spoon.reflect.visitor
Methods in spoon.reflect.visitor with parameters of type CtFieldModifier and TypeMethodDescription<T> void
CtAbstractVisitor.visitCtField(CtField<T> f)
<T> void
CtBiScannerDefault.visitCtField(CtField<T> f)
<T> void
CtInheritanceScanner.visitCtField(CtField<T> e)
<T> void
CtScanner.visitCtField(CtField<T> f)
<T> void
CtVisitor.visitCtField(CtField<T> f)
Visits a field declaration.<T> void
DefaultJavaPrettyPrinter.visitCtField(CtField<T> f)
-
Uses of CtField in spoon.reflect.visitor.filter
Methods in spoon.reflect.visitor.filter with parameters of type CtFieldModifier and TypeMethodDescriptionvoid
FieldScopeFunction.apply(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForPackageProtectedField(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForPrivateField(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForProtectedField(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForPublicField(CtField<?> field, CtConsumer<Object> outputConsumer)
<T> void
VariableReferenceFunction.Visitor.visitCtField(CtField<T> field)
calls outputConsumer for each reference of the field<T> void
VariableScopeFunction.Visitor.visitCtField(CtField<T> field)
calls outputConsumer for each reference of the fieldConstructors in spoon.reflect.visitor.filter with parameters of type CtField -
Uses of CtField in spoon.support
Methods in spoon.support that return CtField -
Uses of CtField in spoon.support.reflect.declaration
Classes in spoon.support.reflect.declaration that implement CtFieldMethods in spoon.support.reflect.declaration that return CtFieldModifier and TypeMethodDescriptionCtFieldImpl.clone()
CtField<?>
CtField<?>
CtField<?>
CtField<?>
CtRecordComponentImpl.toField()
Methods in spoon.support.reflect.declaration that return types with arguments of type CtFieldModifier and TypeMethodDescriptionCtEnumImpl.getFields()
CtTypeImpl.getFields()
CtTypeParameterImpl.getFields()
Methods in spoon.support.reflect.declaration with parameters of type CtFieldModifier and TypeMethodDescriptionCtTypeImpl.addFieldAtTop(CtField<F> field)
CtTypeParameterImpl.addFieldAtTop(CtField<F> field)
<F> boolean
CtTypeImpl.removeField(CtField<F> field)
<F> boolean
CtTypeParameterImpl.removeField(CtField<F> field)
Method parameters in spoon.support.reflect.declaration with type arguments of type CtField -
Uses of CtField in spoon.support.reflect.eval
Methods in spoon.support.reflect.eval with parameters of type CtField -
Uses of CtField in spoon.support.reflect.reference
Methods in spoon.support.reflect.reference that return CtFieldModifier and TypeMethodDescriptionCtFieldReferenceImpl.getDeclaration()
CtFieldReferenceImpl.getFieldDeclaration()
-
Uses of CtField in spoon.support.template
Methods in spoon.support.template that return CtFieldModifier and TypeMethodDescriptionstatic CtField<?>
Parameters.getParameterField(CtClass<? extends Template<?>> templateClass, String parameterName)
Methods in spoon.support.template that return types with arguments of type CtField -
Uses of CtField in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtFieldModifier and TypeMethodDescription<T> void
CloneBuilder.visitCtField(CtField<T> e)
<T> void
CloneVisitor.visitCtField(CtField<T> f)
-
Uses of CtField in spoon.support.visitor.java.internal
Methods in spoon.support.visitor.java.internal with parameters of type CtFieldModifier and TypeMethodDescriptionvoid
void
Constructors in spoon.support.visitor.java.internal with parameters of type CtField -
Uses of CtField in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with parameters of type CtField -
Uses of CtField in spoon.template
Methods in spoon.template that return CtFieldModifier and TypeMethodDescriptionstatic <T> CtField<T>
Substitution.insertField(CtType<?> targetType, Template<?> template, CtField<T> sourceField)
Generates a field (and its initialization expression) from a template field by substituting all the template parameters by their values.Methods in spoon.template with parameters of type CtFieldModifier and TypeMethodDescriptionstatic <T> CtField<T>
Substitution.insertField(CtType<?> targetType, Template<?> template, CtField<T> sourceField)
Generates a field (and its initialization expression) from a template field by substituting all the template parameters by their values.