Interface CtLocalVariable<T>

Type Parameters:
T - type of the variable
All Superinterfaces:
Cloneable, CtCodeElement, CtElement, CtModifiable, CtNamedElement, CtQueryable, CtResource<T>, CtRHSReceiver<T>, CtStatement, CtTypedElement<T>, CtVariable<T>, CtVisitable, FactoryAccessor, Serializable, SourcePositionHolder
All Known Implementing Classes:
CtLocalVariableImpl

public interface CtLocalVariable<T> extends CtStatement, CtVariable<T>, CtRHSReceiver<T>, CtResource<T>
This code element defines a local variable definition (within an executable body). Example:
     // defines a local variable x
     int x = 0;
 
With Java 10, the local variable inference is now authorized, then the following code is valid too in a block scope:
     // local variable in Java 10
     var x = 0;
 
See Also:
CtExecutable