public class VarInitializationVerifier extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VarInitializationVerifier.AssignedState |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doStatementsTerminate(List<? extends IStatement> statements) |
static void |
verifyFinalFields(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 initialized
|
static void |
verifyLocalVars(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
|
public static void verifyFinalFields(IGosuClass gsClass)
public static void verifyLocalVars(IGosuClass gsClass, boolean bFinalOnly)
public static boolean doStatementsTerminate(List<? extends IStatement> statements)
Copyright © 2017. All rights reserved.