org.mesopotamia.lang.java
Class VariableDefinition
java.lang.Object
LanguageElement
org.mesopotamia.lang.java.JavaLanguageElement
org.mesopotamia.lang.java.Field
org.mesopotamia.lang.java.VariableDefinition
- All Implemented Interfaces:
- Info, VariableInfo, Statement
public class VariableDefinition
- extends Field
- implements Statement, VariableInfo
Constructor Summary |
VariableDefinition(NodeData xData,
java.lang.Class<?> context,
Scan scan,
RepositoryLanguage language,
java.lang.Object environment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mesopotamia.lang.java.ref.Info |
getModifiers |
VariableDefinition
public VariableDefinition(NodeData xData,
java.lang.Class<?> context,
Scan scan,
RepositoryLanguage language,
java.lang.Object environment)
throws MesopotamiaException
- Throws:
MesopotamiaException
toDom
public void toDom(org.w3c.dom.Element holder)
- Overrides:
toDom
in class Field
getName
public java.lang.String getName()
- Specified by:
getName
in interface Info
- Returns:
- Variable, type of method name.
getTypeSpecification
public TypeSpecification getTypeSpecification()
- Specified by:
getTypeSpecification
in interface VariableInfo
getInitializer
public VariableInitializer getInitializer()
acceptChildren
protected void acceptChildren(Visitor visitor)
- Overrides:
acceptChildren
in class Field
getFcn
public java.lang.String getFcn()
- Description copied from class:
JavaLanguageElement
- Helper method for giving FCN's to anonymous and local classes.
- Specified by:
getFcn
in interface Info
- Overrides:
getFcn
in class JavaLanguageElement
- Returns:
- Fully qualified name. Null for local variables
and local and anonymous classes/interfaces.
getDeclaringType
public TypeInfo getDeclaringType()
- Specified by:
getDeclaringType
in interface Info
- Returns:
- Information about declaring type.
Null for local variables and local and anonymous classes.
Copyright © 2005 Hammurapi Group. All Rights Reserved.