Java 类org.eclipse.xtext.validation.AbstractDeclarativeValidator 实例源码

项目:xsemantics    文件:FjActualGeneratedValidatorTests.java   
@Override
protected FjCustomRuntimeModuleForTesting createFjCustomRuntimeModule() {
    return new FjCustomRuntimeModuleForTesting(fjTypeSystemClass()) {

        @Override
        public Class<? extends AbstractDeclarativeValidator> bindAbstractDeclarativeValidator() {
            return CustomFjTypeSystemValidator.class;
        }

        @SuppressWarnings("unused")
        public java.lang.Class<? extends FjExpectedTraces> bindFjExpectedTraces() {
            return FjActualExpectedTraces.class;
        }

    };
}
项目:xsemantics    文件:FjSepGeneratedValidatorTests.java   
@Override
protected FjCustomRuntimeModuleForTesting createFjCustomRuntimeModule() {
    return new FjCustomRuntimeModuleForTesting(fjTypeSystemClass()) {

        @Override
        public Class<? extends AbstractDeclarativeValidator> bindAbstractDeclarativeValidator() {
            return CustomFjTypeSystemValidator.class;
        }

        @SuppressWarnings("unused")
        public java.lang.Class<? extends FjExpectedTraces> bindFjExpectedTraces() {
            return FjSepExpectedTraces.class;
        }

    };
}
项目:xsemantics    文件:FjAltGeneratedValidatorTests.java   
@Override
protected FjCustomRuntimeModuleForTesting createFjCustomRuntimeModule() {
    return new FjCustomRuntimeModuleForTesting(fjTypeSystemClass()) {

        @Override
        public Class<? extends AbstractDeclarativeValidator> bindAbstractDeclarativeValidator() {
            return CustomFjTypeSystemValidator.class;
        }

        @SuppressWarnings("unused")
        public java.lang.Class<? extends FjExpectedTraces> bindFjExpectedTraces() {
            return FjAltExpectedTraces.class;
        }

    };
}
项目:xsemantics    文件:FjFirstGeneratedValidatorTests.java   
@Override
protected FjCustomRuntimeModuleForTesting createFjCustomRuntimeModule() {
    return new FjCustomRuntimeModuleForTesting(fjTypeSystemClass()) {

        @Override
        public Class<? extends AbstractDeclarativeValidator> bindAbstractDeclarativeValidator() {
            return FjFirstTypeSystemValidator.class;
        }

    };
}
项目:xsemantics    文件:FjAbstractGeneratedValidatorTests.java   
@Override
@Before
public void setUp() throws Exception {
    super.setUp();
    with(fjCustomStandaloneSetupClass());
    tester = new ValidatorTester<AbstractDeclarativeValidator>(
            get(AbstractDeclarativeValidator.class), getInjector());
    expectedTraces = get(FjExpectedTraces.class);
}
项目:xtext-core    文件:ValidatorFragment2.java   
protected TypeReference getDefaultValidatorSuperClass() {
  return new TypeReference(AbstractDeclarativeValidator.class);
}
项目:xsemantics    文件:FjCustomRuntimeModuleForTesting.java   
public java.lang.Class<? extends AbstractDeclarativeValidator> bindAbstractDeclarativeValidator() {
    return NullTestValidator.class;
}