Java 类org.eclipse.xtext.xbase.typesystem.util.ExtendedEarlyExitComputer 实例源码

项目:xtext-extras    文件:CommonTypeComputationServices.java   
@Pure
public ExtendedEarlyExitComputer getEarlyExitComputer() {
  return this.earlyExitComputer;
}
项目:xtext-extras    文件:CommonTypeComputationServices.java   
public void setEarlyExitComputer(final ExtendedEarlyExitComputer earlyExitComputer) {
  this.earlyExitComputer = earlyExitComputer;
}
项目:txtUML    文件:XtxtUMLRuntimeModule.java   
public Class<? extends ExtendedEarlyExitComputer> bindExtendedEarlyExitComputer() {
    return XtxtUMLEarlyExitComputer.class;
}
项目:xtext-extras    文件:RootResolvedTypes.java   
/**
 * Returns <code>true</code> for expressions that seem to be early exit expressions, e.g.
 * <pre>
 *   while(condition) {
 *     if (anotherCondition)
 *       return value
 *     changeResultOfFirstCondition
 *   }
 * </pre>
 */
protected boolean isIntentionalEarlyExit(/* @Nullable */ XExpression expression) {
    ExtendedEarlyExitComputer earlyExitComputer = getReferenceOwner().getServices().getEarlyExitComputer();
    return earlyExitComputer.isIntentionalEarlyExit(expression);
}