use of org.eclipse.titan.designer.AST.TTCN3.values.ObjectIdentifierComponent in project titan.EclipsePlug-ins by eclipse.
the class RelativeObjectIdentifier_Value method getFullName.
@Override
public /**
* {@inheritDoc}
*/
StringBuilder getFullName(final INamedNode child) {
final StringBuilder builder = super.getFullName(child);
ObjectIdentifierComponent component;
for (int i = 0, size = objectIdComponents.size(); i < size; i++) {
component = objectIdComponents.get(i);
if (component == child) {
return builder.append(INamedNode.DOT).append(i + 1);
}
}
return builder;
}
use of org.eclipse.titan.designer.AST.TTCN3.values.ObjectIdentifierComponent in project titan.EclipsePlug-ins by eclipse.
the class RelativeObjectIdentifier_Value method updateSyntax.
@Override
public /**
* {@inheritDoc}
*/
void updateSyntax(final TTCN3ReparseUpdater reparser, final boolean isDamaged) throws ReParseException {
if (isDamaged) {
throw new ReParseException();
}
for (int i = 0, size = objectIdComponents.size(); i < size; i++) {
final ObjectIdentifierComponent component = objectIdComponents.get(i);
component.updateSyntax(reparser, false);
reparser.updateLocation(component.getLocation());
}
}
Aggregations