java.lang.Object
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.VariableDef
- All Implemented Interfaces:
- java.lang.Comparable, IDefinition, IVariable, Typed
- public class VariableDef
- extends Definition
- implements IVariable
VariableDef is a Definition that contains
information about the definition of a variable.
| Fields inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition |
|
| Methods inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition |
addReference, compareTo, getEnclosingClass, getEnclosingPackage, getName, getNumReferences, getOccurrence, getParentScope, getQualifiedName, getReferences, getTreeNode, isSourced, toString |
PRIVATE_VISIBILITY
public static final int PRIVATE_VISIBILITY
- See Also:
- Constant Field Values
PROTECTED_VISIBILITY
public static final int PROTECTED_VISIBILITY
- See Also:
- Constant Field Values
PUBLIC_VISIBILITY
public static final int PUBLIC_VISIBILITY
- See Also:
- Constant Field Values
DEFAULT_VISIBILITY
public static final int DEFAULT_VISIBILITY
- See Also:
- Constant Field Values
_type
private IClass _type
VariableDef
public VariableDef(java.lang.String name,
Scope parentScope,
SymTabAST node)
getType
public IClass getType()
- Returns the
Type of the variable.
- Specified by:
getType in interface Typed
setType
public void setType(IClass type)
- Sets the type of the variable.
getVisibility
public int getVisibility()
getVisibilityNode
private SymTabAST getVisibilityNode()
isVisibilityNode
private boolean isVisibilityNode(SymTabAST node)
isAssignedAtDeclaration
public boolean isAssignedAtDeclaration()