Matches symbols for variables defined as static within a class.
This pattern only matches nodes of type symbol.
Properties
staticVariableSymbol produces a record that contains the following properties:
| Name | Type | Description |
|---|---|---|
annotation |
list<codeAnnotation> |
Any code annotations on this variable |
isFinal |
bool |
true if the variable is declared final
|
ownerClass |
classType |
The class that contains this variable |
qualifiedName |
string |
The name of the variable, including any scope information |
simpleName |
string |
The name of the variable, without scope information |
Inherits properties from:
Example
The following CodeXM pattern finds all uses of statically defined variables:
pattern staticVariableUse {
variableReference {
.variable == staticVariableSymbol
}
};