Package de.fraunhofer.aisec.cpg.graph
Class MethodDeclaration
- 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
-
- All Implemented Interfaces:
HasType
- Direct Known Subclasses:
ConstructorDeclaration
public class MethodDeclaration extends FunctionDeclaration
A method declaration is aFunctionDeclarationtied to a specificRecordDeclaration.
-
-
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 MethodDeclaration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MethodDeclarationfrom(FunctionDeclaration functionDeclaration, @Nullable RecordDeclaration recordDeclaration)Creates a method declaration from an existingFunctionDeclaration.RecordDeclarationgetRecordDeclaration()booleanisStatic()voidsetRecordDeclaration(@Nullable RecordDeclaration recordDeclaration)voidsetStatic(boolean isStatic)-
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 MethodDeclaration from(FunctionDeclaration functionDeclaration, @Nullable RecordDeclaration recordDeclaration)
Creates a method declaration from an existingFunctionDeclaration.- Parameters:
functionDeclaration- theFunctionDeclaration.recordDeclaration- theRecordDeclarationthis constructor belongs to.- Returns:
- the new method declaration
-
isStatic
public boolean isStatic()
-
setStatic
public void setStatic(boolean isStatic)
-
getRecordDeclaration
public RecordDeclaration getRecordDeclaration()
-
setRecordDeclaration
public void setRecordDeclaration(@Nullable RecordDeclaration recordDeclaration)
-
-