sota.ast.nodes
Class ASTScopeNode

java.lang.Object
  extended by sota.ast.nodes.ASTNode
      extended by 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


Field Summary
protected  ASTNode endNode
           
protected  FileNode fileNode
           
protected  boolean isFirstLevelFunction
           
protected  boolean isTopLevel
           
protected  Metrics metrics
           
protected  java.lang.String name
           
protected  IScopeNode parent
           
protected  java.lang.String qualifiedName
           
protected  java.lang.String scopeName
          Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
protected  java.util.TreeSet<ASTClassNode> setOfClasseNodes
           
protected  java.util.TreeSet<ASTFunctionNode> setOfFunctionNodes
           
 
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
 
Constructor Summary
ASTScopeNode(int ln, java.lang.String scope, java.lang.String name, IScopeNode parent)
           
 
Method Summary
 void addClassNode(ASTClassNode cn)
           
 void addFunctionNode(ASTFunctionNode fn)
           
 java.util.TreeSet<ASTClassNode> getClassNodes()
           
 ASTNode getEndNode()
           
 FileNode getFileNode()
           
 int getFirstLineNr()
           
 java.lang.String getFullyQualifiedName(boolean showPackages, boolean showFiles)
           
 java.util.TreeSet<ASTFunctionNode> getFunctionNodes()
           
 java.lang.String getIDString()
           
 int getLastLineNr()
           
 Metrics getMetrics()
           
 IScopeNode getParent()
           
 java.lang.String getScope()
           
 ASTNode getStartNode()
           
 boolean isFirstLevelFunction()
           
 boolean isTopLevel()
           
 void print_indent(int indent)
           
 void printFunctions(int indent)
           
 void setEndNode(ASTNode dn)
           
 void setFileNode(FileNode n)
           
 void setMetrics(Metrics metrics)
           
protected  void setQualifiedName()
           
 
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
 
Methods inherited from interface sota.ast.nodes.IScopeNode
createASCContent, getName
 

Field Detail

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
Constructor Detail

ASTScopeNode

public ASTScopeNode(int ln,
                    java.lang.String scope,
                    java.lang.String name,
                    IScopeNode parent)
Method Detail

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()