Package org.codehaus.groovy.classgen
Interface FinalVariableAnalyzer.VariableNotFinalCallback
- Enclosing class:
- FinalVariableAnalyzer
public static interface FinalVariableAnalyzer.VariableNotFinalCallback
- 
Method SummaryModifier and TypeMethodDescriptionvoidCallback used whenever a variable is declared as final, but can remain in an uninitialized statevoidvariableNotFinal(Variable var, Expression bexp) Callback called whenever an assignment transforms an effectively final variable into a non-final variable (aka, breaks the "final" modifier contract)
- 
Method Details- 
variableNotFinalCallback called whenever an assignment transforms an effectively final variable into a non-final variable (aka, breaks the "final" modifier contract)- Parameters:
- var- the variable detected as not final
- bexp- the expression responsible for the contract to be broken
 
- 
variableNotAlwaysInitializedCallback used whenever a variable is declared as final, but can remain in an uninitialized state- Parameters:
- var- the variable detected as potentially uninitialized
 
 
-