Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.usage.transmogrify
Class VariableDef  view VariableDef download VariableDef.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition
      extended bycom.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.


Field Summary
private  IClass _type
           
static int DEFAULT_VISIBILITY
           
static int PRIVATE_VISIBILITY
           
static int PROTECTED_VISIBILITY
           
static int PUBLIC_VISIBILITY
           
 
Fields inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition
 
Constructor Summary
VariableDef(java.lang.String name, Scope parentScope, SymTabAST node)
           
 
Method Summary
 IClass getType()
          Returns the Type of the variable.
 int getVisibility()
           
private  SymTabAST getVisibilityNode()
           
 boolean isAssignedAtDeclaration()
           
private  boolean isVisibilityNode(SymTabAST node)
           
 void setType(IClass type)
          Sets the type of the variable.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.IDefinition
addReference, getName, getNumReferences, getQualifiedName, getReferences, isSourced
 

Field Detail

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
Constructor Detail

VariableDef

public VariableDef(java.lang.String name,
                   Scope parentScope,
                   SymTabAST node)
Method Detail

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()