Class Declaration
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.declarations.Declaration
-
- All Implemented Interfaces:
Persistable,IVisitable<Node>
- Direct Known Subclasses:
DeclarationSequence,EnumDeclaration,IncludeDeclaration,NamespaceDeclaration,ProblemDeclaration,RecordDeclaration,TranslationUnitDeclaration,TypedefDeclaration,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
addAnnotations, addNextCFG, addNextCFG, addNextDFG, addNextEOG, addPrevDFG, addPrevEOG, addTypedef, clearNextEOG, disconnectFromGraph, equals, getAnnotations, getArgumentIndex, getCode, getFile, getId, getLocation, getName, getNextCFG, getNextDFG, getNextEOG, getNextEOGProperties, getNextEOGPropertyEdge, getPrevDFG, getPrevEOG, getPrevEOGProperties, getTypedefs, hashCode, isDummy, isImplicit, removeNextDFG, removePrevDFG, removePrevEOGEntries, removePrevEOGEntry, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setLocation, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG, setPrevEOGProperties, setTypedefs
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.fraunhofer.aisec.cpg.processing.IVisitable
accept
-
-