int elementStart = getElementStart();
int lhsIndex = elementStart - "parent".length() //$NON-NLS-1$
- getTriggerType().getName().length();
if (lhsIndex >= 0) {
TextSequence statementText = getStatementText();
String parentText = statementText.subSequence(lhsIndex,
elementStart - getTriggerType().getName().length())
.toString();
if (parentText.equals("parent") || (PHPVersion.PHP5_4.isLessThan(phpVersion) && parentText.toLowerCase().equals("parent"))) { //$NON-NLS-1$ //$NON-NLS-2$
isParent = isDirectParent = true;
}
}
lhsIndex = elementStart - "self".length() //$NON-NLS-1$
- getTriggerType().getName().length();
if (lhsIndex >= 0) {
TextSequence statementText = getStatementText();
String parentText = statementText.subSequence(lhsIndex,
elementStart - getTriggerType().getName().length())
.toString();
if (parentText.equals("self") || (PHPVersion.PHP5_4.isLessThan(phpVersion) && parentText.toLowerCase().equals("self"))) { //$NON-NLS-1$ //$NON-NLS-2$
isSelf = isDirectSelf = true;
}