Class MethodDeclaration
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.declarations.Declaration
-
- de.fraunhofer.aisec.cpg.graph.declarations.ValueDeclaration
-
- de.fraunhofer.aisec.cpg.graph.declarations.FunctionDeclaration
-
- de.fraunhofer.aisec.cpg.graph.declarations.MethodDeclaration
-
- All Implemented Interfaces:
DeclarationHolder,HasType,Persistable,IVisitable<Node>
- 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.declarations.FunctionDeclaration
body, parameters, records, throwsTypes
-
Fields inherited from class de.fraunhofer.aisec.cpg.graph.declarations.ValueDeclaration
possibleSubTypes, type
-
-
Constructor Summary
Constructors Constructor Description MethodDeclaration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable VariableDeclarationgetReceiver()@Nullable RecordDeclarationgetRecordDeclaration()booleanisStatic()voidsetReceiver(@Nullable VariableDeclaration receiver)voidsetRecordDeclaration(@Nullable RecordDeclaration recordDeclaration)voidsetStatic(boolean isStatic)-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.declarations.FunctionDeclaration
addDeclaration, addOverriddenBy, addOverriddenBy, addOverrides, addParameter, addThrowTypes, addThrowTypes, equals, getBody, getBodyStatementAs, getDefinition, getOverriddenBy, getOverriddenByPropertyEdge, getOverrides, getOverridesPropertyEdge, getParameters, getParametersPropertyEdge, getRecords, getRecordsPropertyEdge, getSignature, getSignatureTypes, getThrowsTypes, getThrowsTypesPropertyEdge, getVariableDeclarationByName, hasBody, hashCode, hasSignature, isDefinition, isOverrideCandidate, removeParameter, setBody, setDefinition, setIsDefinition, setParameters, setRecords, setThrowsTypes, toString
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.declarations.ValueDeclaration
getPossibleSubTypes, getPropagationType, getType, getTypeListeners, refreshType, registerTypeListener, resetTypes, setPossibleSubTypes, setType, unregisterTypeListener, updatePossibleSubtypes, updateType
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addAnnotations, addNextCFG, addNextCFG, addNextDFG, addNextEOG, addPrevDFG, addPrevEOG, addTypedef, clearNextEOG, disconnectFromGraph, getAnnotations, getArgumentIndex, getCode, getFile, getId, getLocation, getName, getNextCFG, getNextDFG, getNextEOG, getNextEOGProperties, getNextEOGPropertyEdge, getPrevDFG, getPrevEOG, getPrevEOGProperties, getTypedefs, 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.graph.DeclarationHolder
addIfNotContains, addIfNotContains, addIfNotContains
-
Methods inherited from interface de.fraunhofer.aisec.cpg.graph.HasType
setPossibleSubTypes, setType
-
Methods inherited from interface de.fraunhofer.aisec.cpg.processing.IVisitable
accept
-
-
-
-
Method Detail
-
isStatic
public boolean isStatic()
-
setStatic
public void setStatic(boolean isStatic)
-
getRecordDeclaration
public @Nullable RecordDeclaration getRecordDeclaration()
-
setRecordDeclaration
public void setRecordDeclaration(@Nullable RecordDeclaration recordDeclaration)
-
getReceiver
public @Nullable VariableDeclaration getReceiver()
-
setReceiver
public void setReceiver(@Nullable VariableDeclaration receiver)
-
-