Package de.fraunhofer.aisec.cpg.graph
Class Declaration
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.Declaration
-
- Direct Known Subclasses:
EnumDeclaration,IncludeDeclaration,ProblemDeclaration,RecordDeclaration,TranslationUnitDeclaration,UsingDirective,ValueDeclaration
public class Declaration extends Node
Represents a single declaration or definition, i.e. of a variable (VariableDeclaration) or function (FunctionDeclaration).Note: We do NOT (currently) distinguish between the definition and the declaration of a function. This means, that if a function is first declared and later defined with a function body, we will currently have two
FunctionDeclarationnodes. This is very similar to the behaviour of clang, however clang does establish a connection between those nodes, we currently do not.
-
-
Constructor Summary
Constructors Constructor Description Declaration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addNextDFG, addPrevDFG, disconnectFromGraph, equals, getArgumentIndex, getCode, getFile, getId, getName, getNextCFG, getNextDFG, getNextEOG, getPrevDFG, getPrevEOG, getRegion, hashCode, isDummy, isImplicit, removeNextDFG, removePrevDFG, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG, setRegion
-
-