Package | Description |
---|---|
spoon.refactoring | |
spoon.reflect.code |
This package contains the meta-model part that models the executable code (methods and constructors' bodies, field initializers).
|
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 |
This package contains some default implementations for commonly used processing tasks.
|
spoon.support.reflect.code | |
spoon.support.reflect.eval | |
spoon.support.reflect.reference | |
spoon.support.visitor.clone | |
spoon.support.visitor.replace |
Modifier and Type | Method and Description |
---|---|
static void |
Refactoring.changeLocalVariableName(CtLocalVariable<?> localVariable,
java.lang.String newName)
Changes name of a
CtLocalVariable . |
Modifier and Type | Method and Description |
---|---|
<U extends CtLocalVariable<T>> |
CtLocalVariable.setInferred(boolean inferred)
Set true if the variable must be inferred.
|
Modifier and Type | Method and Description |
---|---|
CtLocalVariable<T> |
CtLocalVariable.clone() |
CtLocalVariable<?> |
CtForEach.getVariable()
Gets the variable that references the currently iterated element.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CtLocalVariable<?>> |
CtTryWithResource.getResources()
Gets the auto-closeable resources of this
try . |
Modifier and Type | Method and Description |
---|---|
<T extends CtTryWithResource> |
CtTryWithResource.addResource(CtLocalVariable<?> resource)
Adds a resource.
|
boolean |
CtTryWithResource.removeResource(CtLocalVariable<?> resource)
Removes a resource.
|
<T extends CtForEach> |
CtForEach.setVariable(CtLocalVariable<?> variable)
Sets the variable that references the currently iterated element.
|
Modifier and Type | Method and Description |
---|---|
<T extends CtTryWithResource> |
CtTryWithResource.setResources(java.util.List<CtLocalVariable<?>> resources)
Sets the auto-closeable resources of this
try . |
Modifier and Type | Method and Description |
---|---|
<T> CtLocalVariable<T> |
CoreFactory.createLocalVariable()
Creates a local variable declaration statement.
|
<T> CtLocalVariable<T> |
Factory.createLocalVariable() |
<T> CtLocalVariable<T> |
FactoryImpl.createLocalVariable() |
<T> CtLocalVariable<T> |
CodeFactory.createLocalVariable(CtTypeReference<T> type,
java.lang.String name,
CtExpression<T> defaultExpression)
Creates a local variable declaration.
|
<T> CtLocalVariable<T> |
Factory.createLocalVariable(CtTypeReference<T> type,
java.lang.String name,
CtExpression<T> defaultExpression) |
<T> CtLocalVariable<T> |
FactoryImpl.createLocalVariable(CtTypeReference<T> type,
java.lang.String name,
CtExpression<T> defaultExpression) |
Modifier and Type | Method and Description |
---|---|
<T> CtLocalVariableReference<T> |
CodeFactory.createLocalVariableReference(CtLocalVariable<T> localVariable)
Creates a local variable reference that points to an existing local
variable (strong referencing).
|
<T> CtLocalVariableReference<T> |
Factory.createLocalVariableReference(CtLocalVariable<T> localVariable) |
<T> CtLocalVariableReference<T> |
FactoryImpl.createLocalVariableReference(CtLocalVariable<T> localVariable) |
Modifier and Type | Method and Description |
---|---|
CtLocalVariable<T> |
CtLocalVariableReference.getDeclaration() |
Modifier and Type | Method and Description |
---|---|
<T> void |
CtAbstractVisitor.visitCtLocalVariable(CtLocalVariable<T> localVariable) |
<T> void |
CtVisitor.visitCtLocalVariable(CtLocalVariable<T> localVariable)
Visits a local variable declaration.
|
<T> void |
CtBiScannerDefault.visitCtLocalVariable(CtLocalVariable<T> localVariable) |
<T> void |
DefaultJavaPrettyPrinter.visitCtLocalVariable(CtLocalVariable<T> localVariable) |
<T> void |
CtInheritanceScanner.visitCtLocalVariable(CtLocalVariable<T> e) |
<T> void |
CtScanner.visitCtLocalVariable(CtLocalVariable<T> localVariable) |
Modifier and Type | Method and Description |
---|---|
void |
LocalVariableScopeFunction.apply(CtLocalVariable<?> localVariable,
CtConsumer<java.lang.Object> outputConsumer) |
<T> void |
VariableReferenceFunction.Visitor.visitCtLocalVariable(CtLocalVariable<T> localVariable)
calls outputConsumer for each reference of the local variable
|
<T> void |
VariableScopeFunction.Visitor.visitCtLocalVariable(CtLocalVariable<T> localVariable)
calls outputConsumer for each reference of the local variable
|
Constructor and Description |
---|
LocalVariableReferenceFunction(CtLocalVariable<?> localVariable)
This constructor allows to define input local variable - the one for which this function will search for.
|
Modifier and Type | Method and Description |
---|---|
<T> CtLocalVariable<T> |
DefaultCoreFactory.createLocalVariable() |
Modifier and Type | Class and Description |
---|---|
class |
CtLocalVariableImpl<T> |
Modifier and Type | Method and Description |
---|---|
<U extends CtLocalVariable<T>> |
CtLocalVariableImpl.setInferred(boolean inferred) |
Modifier and Type | Method and Description |
---|---|
CtLocalVariable<T> |
CtLocalVariableImpl.clone() |
CtLocalVariable<?> |
CtForEachImpl.getVariable() |
Modifier and Type | Method and Description |
---|---|
java.util.List<CtLocalVariable<?>> |
CtTryWithResourceImpl.getResources() |
Modifier and Type | Method and Description |
---|---|
<T extends CtTryWithResource> |
CtTryWithResourceImpl.addResource(CtLocalVariable<?> resource) |
boolean |
CtTryWithResourceImpl.removeResource(CtLocalVariable<?> resource) |
<T extends CtForEach> |
CtForEachImpl.setVariable(CtLocalVariable<?> variable) |
Modifier and Type | Method and Description |
---|---|
<T extends CtTryWithResource> |
CtTryWithResourceImpl.setResources(java.util.List<CtLocalVariable<?>> resources) |
Modifier and Type | Method and Description |
---|---|
<T> void |
VisitorPartialEvaluator.visitCtLocalVariable(CtLocalVariable<T> localVariable) |
Modifier and Type | Method and Description |
---|---|
CtLocalVariable<T> |
CtLocalVariableReferenceImpl.getDeclaration() |
Modifier and Type | Method and Description |
---|---|
<T> void |
CloneBuilder.visitCtLocalVariable(CtLocalVariable<T> e) |
<T> void |
CloneVisitor.visitCtLocalVariable(CtLocalVariable<T> localVariable) |
Modifier and Type | Method and Description |
---|---|
<T> void |
ReplacementVisitor.visitCtLocalVariable(CtLocalVariable<T> localVariable) |
Copyright © 2007–2021 Inria. All rights reserved.