sota.ast.nodes
Class ASTScopeNode
java.lang.Object
sota.ast.nodes.ASTNode
sota.ast.nodes.ASTScopeNode
- All Implemented Interfaces:
- java.lang.Comparable<ASTNode>, IScopeNode
- Direct Known Subclasses:
- ASTClassNode, ASTFunctionNode
public abstract class ASTScopeNode
- extends ASTNode
- implements IScopeNode
AST-Knoten für Scopestatements
ASTScopeNode this > .. ASTNode endNode
Fields inherited from class sota.ast.nodes.ASTNode |
ascContent, BRANCH, CASE, CATCH, CONDITION, content, controlingBranchNode, DO, functionNode, id, IF, isDirectReachable, isReachable, isVirtual, ITERATION, JUMP, lineNr, next, NODE, prev, SCOPE, STATEMENT, SWITCH, TRY |
Methods inherited from class sota.ast.nodes.ASTNode |
appendToASCContent, compareTo, createASCContent, getASCContent, getContent, getControlingBranchNode, getFunctionNode, getID, getLineNr, getNextNode, getNodeString, getPrevNode, getReachString, getType, isDirectReachable, isDirectReachable, isReachable, isReachable, isVirtual, isVirtual, print, printCFG, printNode, printReach, setASCContent, setContent, setControlingBranchNode, setFunctionNode, setID, setNextNode, setPrevNode, typeToString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endNode
protected ASTNode endNode
fileNode
protected FileNode fileNode
isFirstLevelFunction
protected boolean isFirstLevelFunction
isTopLevel
protected boolean isTopLevel
metrics
protected Metrics metrics
name
protected java.lang.String name
parent
protected IScopeNode parent
qualifiedName
protected java.lang.String qualifiedName
scopeName
protected java.lang.String scopeName
- Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
setOfClasseNodes
protected java.util.TreeSet<ASTClassNode> setOfClasseNodes
setOfFunctionNodes
protected java.util.TreeSet<ASTFunctionNode> setOfFunctionNodes
ASTScopeNode
public ASTScopeNode(int ln,
java.lang.String scope,
java.lang.String name,
IScopeNode parent)
addClassNode
public void addClassNode(ASTClassNode cn)
- Specified by:
addClassNode
in interface IScopeNode
addFunctionNode
public void addFunctionNode(ASTFunctionNode fn)
- Specified by:
addFunctionNode
in interface IScopeNode
getClassNodes
public java.util.TreeSet<ASTClassNode> getClassNodes()
- Specified by:
getClassNodes
in interface IScopeNode
getEndNode
public ASTNode getEndNode()
- Specified by:
getEndNode
in interface IScopeNode
getFileNode
public FileNode getFileNode()
- Specified by:
getFileNode
in interface IScopeNode
getFirstLineNr
public int getFirstLineNr()
- Specified by:
getFirstLineNr
in interface IScopeNode
getFullyQualifiedName
public java.lang.String getFullyQualifiedName(boolean showPackages,
boolean showFiles)
- Specified by:
getFullyQualifiedName
in interface IScopeNode
getFunctionNodes
public java.util.TreeSet<ASTFunctionNode> getFunctionNodes()
- Specified by:
getFunctionNodes
in interface IScopeNode
getIDString
public java.lang.String getIDString()
- Specified by:
getIDString
in interface IScopeNode
getLastLineNr
public int getLastLineNr()
- Specified by:
getLastLineNr
in interface IScopeNode
getMetrics
public Metrics getMetrics()
- Specified by:
getMetrics
in interface IScopeNode
getParent
public IScopeNode getParent()
- Specified by:
getParent
in interface IScopeNode
getScope
public java.lang.String getScope()
- Specified by:
getScope
in interface IScopeNode
getStartNode
public ASTNode getStartNode()
- Specified by:
getStartNode
in interface IScopeNode
isFirstLevelFunction
public boolean isFirstLevelFunction()
isTopLevel
public boolean isTopLevel()
- Specified by:
isTopLevel
in interface IScopeNode
print_indent
public void print_indent(int indent)
printFunctions
public void printFunctions(int indent)
setEndNode
public void setEndNode(ASTNode dn)
- Specified by:
setEndNode
in interface IScopeNode
setFileNode
public void setFileNode(FileNode n)
setMetrics
public void setMetrics(Metrics metrics)
- Specified by:
setMetrics
in interface IScopeNode
setQualifiedName
protected void setQualifiedName()