com.borland.jbuilder.jot
Interface JotVariableDeclaration

All Superinterfaces:
JotMarker, JotSourceElement, JotStatement, JotVariable
All Known Subinterfaces:
JotFieldDeclaration

public interface JotVariableDeclaration
extends JotVariable, JotStatement

This interface represents a local variable declaration statement. See section 14.3 in the Java Language Specification for more information.


Method Summary
 JotExpression getInitializer()
          Returns the expression which initializes this variable.
 int getModifiers()
          Returns the Java language modifiers for this variable encoded in an integer.
 void setInitializer(java.lang.String init)
          Sets the expression which initializes this variable.
 void setModifiers(int modifiers)
          Specify the modifiers for the variable.
 void setName(java.lang.String name)
          Sets the name of the variable.
 
Methods inherited from interface com.borland.jbuilder.jot.JotVariable
getFullName, getMemberName, getName, getObjectName, getType
 
Methods inherited from interface com.borland.jbuilder.jot.JotStatement
getCodeBlock, getStatements
 
Methods inherited from interface com.borland.jbuilder.jot.JotMarker
addUserData, getEndPosition, getStartPosition, getUserData
 
Methods inherited from interface com.borland.jbuilder.jot.JotSourceElement
getIndentLevel, getParent, getText, isModified, setModified, setText
 

Method Detail

setName

public void setName(java.lang.String name)
Sets the name of the variable. Note that C-style array declarations can be created by specifying the name followed by the appropriate brackets, e.g. "a[][]".

getModifiers

public int getModifiers()
Returns the Java language modifiers for this variable encoded in an integer. The only valid modifier for a variable is Java Virtual Machine's constant for final. It should be decoded using the methods of class Modifier.

The modifier encodings are defined in The Java Virtual Machine Specification, table 4.1.

See Also:
Modifier

setModifiers

public void setModifiers(int modifiers)
Specify the modifiers for the variable. Use the static variables of java.lang.reflect.Modifier to create the combination of modifiers desired.

getInitializer

public JotExpression getInitializer()
Returns the expression which initializes this variable.

setInitializer

public void setInitializer(java.lang.String init)
Sets the expression which initializes this variable.