Class VarInitializationVerifier
java.lang.Object
gw.internal.gosu.parser.statements.VarInitializationVerifier
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandoStatementsTerminate(List<? extends IStatement> statements) static voidverifyFinalFields(IGosuClass gsClass) Verifies initialization of final fields in the provided class and, recursively, all nested inner classes: Verifies that a final field is fully initialized either in the declaration or in the constructor[s] Verifies that an assignment to a final field is mutually exclusive wrt other assignments to the field Verifies that a reference to a final field is in a position in the source where the final field is fully initializedstatic voidverifyLocalVars(IGosuClass gsClass, boolean bFinalOnly) Verifies initialization of local vars in the provided class and, recursively, all nested inner classes: Verifies that a final local var is fully initialized either in the declaration or in the scope of the var Verifies that an assignment to a final local var is mutually exclusive wrt other assignments to the var Verifies that a reference to any local var, not just finals, is in a position in the source where the var is fully initialized
-
Method Details
-
verifyFinalFields
Verifies initialization of final fields in the provided class and, recursively, all nested inner classes:- Verifies that a final field is fully initialized either in the declaration or in the constructor[s]
- Verifies that an assignment to a final field is mutually exclusive wrt other assignments to the field
- Verifies that a reference to a final field is in a position in the source where the final field is fully initialized
-
verifyLocalVars
Verifies initialization of local vars in the provided class and, recursively, all nested inner classes:- Verifies that a final local var is fully initialized either in the declaration or in the scope of the var
- Verifies that an assignment to a final local var is mutually exclusive wrt other assignments to the var
- Verifies that a reference to any local var, not just finals, is in a position in the source where the var is fully initialized
-
doStatementsTerminate
-