Java Code Examples for org.eclipse.xtext.AbstractElement#isPredicated()

The following examples show how to use org.eclipse.xtext.AbstractElement#isPredicated() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PredicateUsesUnorderedGroupInspector.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
protected boolean shouldTraverse(AbstractElement object) {
	return !object.isPredicated() || alreadyChecked.add(object);
}
 
Example 2
Source File: PredicateUsesUnorderedGroupInspector.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
private void pushChecked(AbstractElement element) {
	if (element.isPredicated()) {
		elementStack.push(element);
	}
}
 
Example 3
Source File: PredicateUsesUnorderedGroupInspector.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
private void popChecked(AbstractElement element) {
	if (element.isPredicated()) {
		elementStack.pop();
	}
}
 
Example 4
Source File: GrammarAccessExtensions.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
protected boolean _predicated(final AbstractElement it) {
  return it.isPredicated();
}