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 form array[index] bot array and index are 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, java.util.Set<Type> oldSubTypes)voidsetArrayExpression(Expression arrayExpression)voidsetSubscriptExpression(Expression subscriptExpression)voidtypeChanged(HasType src, 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, getArgumentIndex, getCode, getFile, getId, getName, getNextCFG, getNextDFG, getNextEOG, getPrevDFG, getPrevEOG, getRegion, isDummy, removeNextDFG, removePrevDFG, setArgumentIndex, setCode, setComment, setDummy, setFile, 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
shouldBeNotified
-
-
-
-
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, Type oldType)
- Specified by:
typeChangedin interfaceHasType.TypeListener
-
possibleSubTypesChanged
public void possibleSubTypesChanged(HasType src, 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
-
-