Package de.fraunhofer.aisec.cpg.graph
Class ArraySubscriptionExpression
- 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.ArraySubscriptionExpression
-
- All Implemented Interfaces:
HasType,HasType.TypeListener
public class ArraySubscriptionExpression extends Expression implements HasType.TypeListener
Represents the Subscription or access of an array of the formarray[index], where botharrayandindexare of typeExpression. CPP can overload operators thus changing semantics of array access.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.fraunhofer.aisec.cpg.graph.HasType
HasType.TypeListener
-
-
Constructor Summary
Constructors Constructor Description ArraySubscriptionExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ExpressiongetArrayExpression()ExpressiongetSubscriptExpression()inthashCode()voidpossibleSubTypesChanged(HasType src, HasType root, java.util.Set<Type> oldSubTypes)voidsetArrayExpression(Expression arrayExpression)voidsetSubscriptExpression(Expression subscriptExpression)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, toString, unregisterTypeListener
-
Methods inherited from class de.fraunhofer.aisec.cpg.graph.Node
addNextDFG, addPrevDFG, disconnectFromGraph, getArgumentIndex, getCode, getFile, getId, getLocation, getName, getNextCFG, getNextDFG, getNextEOG, getPrevDFG, getPrevEOG, isDummy, isImplicit, removeNextDFG, removePrevDFG, setArgumentIndex, setCode, setComment, setDummy, setFile, setImplicit, setLocation, setName, setNextDFG, setNextEOG, setPrevDFG, setPrevEOG
-
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
-
getArrayExpression
public Expression getArrayExpression()
-
setArrayExpression
public void setArrayExpression(Expression arrayExpression)
-
getSubscriptExpression
public Expression getSubscriptExpression()
-
setSubscriptExpression
public void setSubscriptExpression(Expression subscriptExpression)
-
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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classExpression
-
-