public class DDArrayAccessInfo
extends java.lang.Object
Constructor and Description |
---|
DDArrayAccessInfo(ArrayAccess expr,
int type,
Loop loop,
Statement stmt)
Constructs a new array access information for the specified array access,
access type, enclosing loop, and enclosing statement.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<Loop> |
getAccessEnclosingLoops()
Returns entire nest of enclosing loops
|
Loop |
getAccessLoop()
Returns the enclosing loop
|
int |
getAccessType()
Returns a boolean value indicating whether this array
access is a write(0) or a read(1) within the parent
statement
|
ArrayAccess |
getArrayAccess()
Returns the array access expression
|
Expression |
getArrayAccessName() |
Statement |
getParentStatement()
Returns the statement that contains the array access
|
void |
setArrayAccess(ArrayAccess e)
Set the array access expression
|
java.lang.String |
toString() |
public DDArrayAccessInfo(ArrayAccess expr, int type, Loop loop, Statement stmt)
expr
- the array access expression.type
- the type of array access (0=write, 1=read).loop
- the enclosing loop.stmt
- the enclosing statement.public ArrayAccess getArrayAccess()
public void setArrayAccess(ArrayAccess e)
public int getAccessType()
public Loop getAccessLoop()
public java.util.LinkedList<Loop> getAccessEnclosingLoops()
public Statement getParentStatement()
public Expression getArrayAccessName()
public java.lang.String toString()
toString
in class java.lang.Object