Package de.fraunhofer.aisec.cpg.graph
Class ConstructorDeclaration
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.Declaration
-
- de.fraunhofer.aisec.cpg.graph.ValueDeclaration
-
- de.fraunhofer.aisec.cpg.graph.FunctionDeclaration
-
- de.fraunhofer.aisec.cpg.graph.MethodDeclaration
-
- de.fraunhofer.aisec.cpg.graph.ConstructorDeclaration
-
- All Implemented Interfaces:
HasType
public class ConstructorDeclaration extends MethodDeclaration
The declaration of a constructor within aRecordDeclaration. Is it essentially a special case of aMethodDeclaration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.fraunhofer.aisec.cpg.graph.HasType
HasType.TypeListener
-
-
Field Summary
-
Fields inherited from class de.fraunhofer.aisec.cpg.graph.FunctionDeclaration
body, parameters, throwsTypes
-
Fields inherited from class de.fraunhofer.aisec.cpg.graph.ValueDeclaration
possibleSubTypes, type
-
-
Constructor Summary
Constructors Constructor Description ConstructorDeclaration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConstructorDeclarationfrom(MethodDeclaration methodDeclaration)Creates a constructor declaration from an existingMethodDeclaration.-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.MethodDeclaration
from, getRecordDeclaration, isStatic, setRecordDeclaration, setStatic
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.FunctionDeclaration
equals, getBody, getBodyStatementAs, getOverriddenBy, getOverrides, getParameters, getSignature, getThrowsTypes, getVariableDeclarationByName, hasBody, hashCode, hasSignature, isOverrideCandidate, setBody, setParameters, setThrowsTypes, toString
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.ValueDeclaration
getPossibleSubTypes, getType, getTypeListeners, refreshType, registerTypeListener, resetTypes, setPossibleSubTypes, setType, unregisterTypeListener
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addNextDFG, addPrevDFG, disconnectFromGraph, getArgumentIndex, getCode, getFile, getId, getName, getNextCFG, getNextDFG, getNextEOG, getPrevDFG, getPrevEOG, getRegion, isDummy, isImplicit, removeNextDFG, removePrevDFG, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG, setRegion
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.fraunhofer.aisec.cpg.graph.HasType
setPossibleSubTypes, setType
-
-
-
-
Method Detail
-
from
public static ConstructorDeclaration from(MethodDeclaration methodDeclaration)
Creates a constructor declaration from an existingMethodDeclaration.- Parameters:
methodDeclaration- theMethodDeclaration.- Returns:
- the constructor declaration
-
-