public class ContextInstantiationEntry extends InstantiationEntry<ContextStatementBlockInstantiation>
Constructor and Description |
---|
ContextInstantiationEntry(PosInProgram pi,
PosInProgram omega,
ExecutionContext activeStatementContext,
ProgramElement pe)
creates a new ContextInstantiationEntry
|
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
activeStatementContext()
returns the execution context of the first active statement or
null if match is performed outer most
|
ProgramElement |
contextProgram()
returns the context program with an ignorable part between prefix
and suffix position
|
PosInProgram |
prefix()
returns the position of the first statement after the prefix
|
PosInProgram |
suffix()
returns the position of the statement just before the suffix
starts
|
java.lang.String |
toString()
toString
|
equals, getInstantiation, hashCode
ContextInstantiationEntry(PosInProgram pi, PosInProgram omega, ExecutionContext activeStatementContext, ProgramElement pe)
pi
- the PosInProgram describing the position
of the first statement after the prefixomega
- the PosInProgram describing the position
of the statement just before the suffix startsactiveStatementContext
- the ExecutionContext of the first
active statementpe
- the ProgramElement the context positions are related topublic PosInProgram prefix()
public PosInProgram suffix()
public ProgramElement contextProgram()
public ExecutionContext activeStatementContext()
public java.lang.String toString()
toString
in class InstantiationEntry<ContextStatementBlockInstantiation>