org.jtool.jxplatform.graph.cfg
Class JxSpecialVariable
java.lang.Object
org.jtool.jxplatform.wrapper.JxElement
org.jtool.jxplatform.wrapper.JxDefUseExpression
org.jtool.jxplatform.wrapper.JxExpression
org.jtool.jxplatform.wrapper.JxVariable
org.jtool.jxplatform.graph.cfg.JxSpecialVariable
- public class JxSpecialVariable
- extends JxVariable
A special variable wrapper for formal-in, formal-out, actual-in, and actual-out nodes of CFGs and PDGs.
- Author:
- Katsuhisa Maruyama
|
Constructor Summary |
protected |
JxSpecialVariable()
Creates a new, empty object. |
protected |
JxSpecialVariable(org.w3c.dom.Element elem)
Creates a new object for a special variable. |
protected |
JxSpecialVariable(org.w3c.dom.Element elem,
java.lang.String name)
Creates a new object for a special variable. |
protected |
JxSpecialVariable(org.w3c.dom.Element elem,
java.lang.String name,
java.lang.String fqn)
Creates a new object for a special variable. |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxVariable |
equals, getBindingName, getDeclaration, getDefId, getFqn, getName, getStatementElement, getTypeFqn, isDeclarationVariable, isDefinedVariable, isField, isLocal, isNonDefUseVariable, isParameter, isUsedVariable, isVariable, print |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxExpression |
equals, getCastedTypeFqn, getCastedTypeName, getDotPrefix, getJavaStatement, getSort, isArrayCreation, isAssign, isConstructorCall, isDotOperator, isExpression, isFieldAccess, isInSimpleAssignment, isInstanceCreation, isMethodCall, isOpAssign, isParenthesis, isPostAssignment, isPostDecrement, isPostIncrement, isPreAssignment, isPreDecrement, isPreIncement, isSuperConstructorCall, isSuperReference, isThisConstructorCall, isThisReference, isVariableAccess |
| Methods inherited from class org.jtool.jxplatform.wrapper.JxDefUseExpression |
addDefinedVariable, addDefinedVariableFirst, addUsedVariable, addUsedVariableFirst, clearDefinedVariable, clearUsedVariable, definesVariable, 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, getStaticInitElement, getTypeElement, getTypeElements, getTypeName, indexOf, indexOf, isBinary, isClass, isClassOrInterface, isConstructor, isExpression, isFile, isImport, isInterface, isInTheSameField, isMethod, isMethodOrConstructor, isPackage, isStatement, isStaticInit, isTerminalElement, isType, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JxSpecialVariable
protected JxSpecialVariable()
- Creates a new, empty object.
JxSpecialVariable
protected JxSpecialVariable(org.w3c.dom.Element elem)
throws JxWrapperException
- Creates a new object for a special variable.
- Parameters:
elem - A DOM element to be wrapped.
- Throws:
JxWrapperException - if the creation of a varible wrapper fails.
JxSpecialVariable
protected JxSpecialVariable(org.w3c.dom.Element elem,
java.lang.String name)
throws JxWrapperException
- Creates a new object for a special variable.
- Parameters:
elem - A DOM element to be wrapped.name - The name of a variable.
- Throws:
JxWrapperException - if the creation of a varible wrapper fails.
JxSpecialVariable
protected JxSpecialVariable(org.w3c.dom.Element elem,
java.lang.String name,
java.lang.String fqn)
throws JxWrapperException
- Creates a new object for a special variable.
- Parameters:
elem - A DOM element to be wrapped.name - The name of a variable.fqn - The fully-qualified name of the type of a variable.
- Throws:
JxWrapperException - if the creation of a varible wrapper fails.
equals
public boolean equals(JxSpecialVariable jv)
- Tests if a given special variable wrapper equals to this one.
- Parameters:
jv - A special variable wrapper.
- Returns:
true if the special variable wrapper equals to this one, otherwise false.