Package de.fraunhofer.aisec.cpg.graph
Class CallExpression
- java.lang.Object
-
- de.fraunhofer.aisec.cpg.graph.Node
-
- de.fraunhofer.aisec.cpg.graph.Statement
-
- de.fraunhofer.aisec.cpg.graph.Expression
-
- de.fraunhofer.aisec.cpg.graph.CallExpression
-
- All Implemented Interfaces:
HasType,HasType.TypeListener
- Direct Known Subclasses:
ExplicitConstructorInvocation,MemberCallExpression,StaticCallExpression
public class CallExpression extends Expression implements HasType.TypeListener
An expression, which calls another function. It has a list of arguments (list ofExpressions) and is connected via the INVOKES edge to itsFunctionDeclaration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.fraunhofer.aisec.cpg.graph.HasType
HasType.TypeListener
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<FunctionDeclaration>invokesConnection to itsFunctionDeclaration.-
Fields inherited from class de.fraunhofer.aisec.cpg.graph.Expression
type
-
-
Constructor Summary
Constructors Constructor Description CallExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<Expression>getArguments()NodegetBase()java.lang.StringgetFqn()java.util.List<FunctionDeclaration>getInvokes()java.util.List<Type>getSignature()inthashCode()voidpossibleSubTypesChanged(HasType src, HasType root, java.util.Set<Type> oldSubTypes)voidsetArguments(java.util.List<Expression> arguments)voidsetBase(Node base)voidsetFqn(java.lang.String fqn)voidsetInvokes(java.util.List<FunctionDeclaration> invokes)java.lang.StringtoString()voidtypeChanged(HasType src, HasType root, Type oldType)-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Expression
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
-
-
-
-
Field Detail
-
invokes
protected java.util.List<FunctionDeclaration> invokes
Connection to itsFunctionDeclaration. This will be populated by theCallResolver.
-
-
Method Detail
-
getBase
public Node getBase()
-
setBase
public void setBase(Node base)
-
getArguments
public java.util.List<Expression> getArguments()
-
setArguments
public void setArguments(java.util.List<Expression> arguments)
-
getInvokes
public java.util.List<FunctionDeclaration> getInvokes()
-
setInvokes
public void setInvokes(java.util.List<FunctionDeclaration> invokes)
-
getSignature
public java.util.List<Type> getSignature()
-
typeChanged
public void typeChanged(HasType src, HasType root, Type oldType)
- Specified by:
typeChangedin interfaceHasType.TypeListener
-
possibleSubTypesChanged
public void possibleSubTypesChanged(HasType src, HasType root, java.util.Set<Type> oldSubTypes)
- Specified by:
possibleSubTypesChangedin interfaceHasType.TypeListener
-
toString
public java.lang.String toString()
- Overrides:
toStringin classExpression
-
getFqn
public java.lang.String getFqn()
-
setFqn
public void setFqn(java.lang.String fqn)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
-