org.jtool.jxplatform.wrapper
Class JxParameter

java.lang.Object
  extended byorg.jtool.jxplatform.wrapper.JxElement
      extended byorg.jtool.jxplatform.wrapper.JxDefUseExpression
          extended byorg.jtool.jxplatform.wrapper.JxLocal
              extended byorg.jtool.jxplatform.wrapper.JxParameter

public class JxParameter
extends JxLocal

An object wrapping the Param element.

Author:
Katsuhisa Maruyama

Field Summary
 
Fields inherited from class org.jtool.jxplatform.wrapper.JxLocal
jvariable
 
Fields inherited from class org.jtool.jxplatform.wrapper.JxDefUseExpression
defs, expressions, uses
 
Fields inherited from class org.jtool.jxplatform.wrapper.JxElement
element
 
Constructor Summary
protected JxParameter()
          Creates a new, empty object.
protected JxParameter(org.w3c.dom.Element elem)
          Creates a new object wrapping a Param element.
 
Method Summary
 boolean enclose(org.w3c.dom.Element elem)
          Tests if this parameter element encloses a given element.
 boolean equals(JxParameter jparam)
          Tests if a given parameter wrapper equals to this one.
static org.w3c.dom.Element getParameterElement(org.w3c.dom.Element elem)
          Returns the Param element containing a given element.
 boolean isFinal()
          Tests if this parameter is declared as final.
static boolean isParameter(org.w3c.dom.Element elem)
          Tests if a given element equals to Param.
 void print()
          Displays information about this parameter wrapper for debugging.
 
Methods inherited from class org.jtool.jxplatform.wrapper.JxLocal
equals, getAllElementsSharingTheSameType, getJxVariable, getLocalElement, getName, getNameNode, getNumOfVariablesInDeclaration, getTypeFqn, getTypeName, hasInitialValue, isLocal, isOmitted, isVolatile
 
Methods inherited from class org.jtool.jxplatform.wrapper.JxDefUseExpression
addDefinedVariable, addDefinedVariableFirst, addUsedVariable, addUsedVariableFirst, clearDefinedVariable, clearUsedVariable, definesVariable, equals, getDefinedVariables, getExpressions, getUsedVariables, removeDefinedVariable, removeUsedVariable, usesVariable
 
Methods inherited from class org.jtool.jxplatform.wrapper.JxElement
equals, existInTheSameClass, existInTheSameField, existInTheSameFile, existInTheSameMethod, existsInTheSameClass, existsInTheSameFile, existsInTheSameMethod, existsInTheSamePackage, getArrayOfElements, getChildElement, getChildElement, getChildElements, getChildElements, getChildNodes, getChildNodes, getClassElement, getDescendantElements, getDescendantElements, getDescendantElements, getDescendantElements, getElement, getElementById, getExpressionElements, getFieldElement, getFileElement, getFirstChildElement, getFirstChildElement, getId, getId, getIdentName, getIdentName, getJxClass, getJxField, getJxFile, getJxMethod, getJxStaticInit, getKeyword, getLine, getMethodElement, getStatementElement, getStaticInitElement, getTypeElement, getTypeElements, indexOf, indexOf, isBinary, isClass, isClassOrInterface, isConstructor, isExpression, isField, isFile, isImport, isInterface, isInTheSameField, isLocal, isMethod, isMethodOrConstructor, isPackage, isParameter, isStatement, isStaticInit, isTerminalElement, isType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JxParameter

protected JxParameter()
Creates a new, empty object.


JxParameter

protected JxParameter(org.w3c.dom.Element elem)
               throws JxWrapperException
Creates a new object wrapping a Param element.

Parameters:
elem - An DOM element to be wrapped.
Throws:
JxWrapperException - if the specified element is not valid.
Method Detail

isFinal

public boolean isFinal()
Tests if this parameter is declared as final.

Overrides:
isFinal in class JxLocal
Returns:
true if this parameter is final.

isParameter

public static boolean isParameter(org.w3c.dom.Element elem)
Tests if a given element equals to Param.

Parameters:
elem - An element of the DOM.
Returns:
true if the element equals to Param.

getParameterElement

public static org.w3c.dom.Element getParameterElement(org.w3c.dom.Element elem)
Returns the Param element containing a given element.

Parameters:
elem - An element of the DOM.
Returns:
The Param element, or null if there is no such element.

equals

public boolean equals(JxParameter jparam)
Tests if a given parameter wrapper equals to this one.

Parameters:
jparam - A parameter wrapper.
Returns:
true if the local wrapper equals to this one, otherwise false.

enclose

public boolean enclose(org.w3c.dom.Element elem)
Tests if this parameter element encloses a given element.

Overrides:
enclose in class JxLocal
Parameters:
elem - An element of the DOM.
Returns:
true if this element encloses the element.

print

public void print()
Displays information about this parameter wrapper for debugging.

Overrides:
print in class JxLocal