Java Code Examples for com.sun.tools.javac.util.Assert#checkNull()

The following examples show how to use com.sun.tools.javac.util.Assert#checkNull() . These examples are extracted from open source projects. 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
public void initModules(List<JCCompilationUnit> trees) {
    Assert.check(!inInitModules);
    try {
        inInitModules = true;
        Assert.checkNull(rootModules);
        enter(trees, modules -> {
            Assert.checkNull(rootModules);
            Assert.checkNull(allModules);
            this.rootModules = modules;
            setupAllModules(); //initialize the module graph
            Assert.checkNonNull(allModules);
            inInitModules = false;
        }, null);
    } finally {
        inInitModules = false;
    }
}
 
Example 2
public void initModules(List<JCCompilationUnit> trees) {
    Assert.check(!inInitModules);
    try {
        inInitModules = true;
        Assert.checkNull(rootModules);
        enter(trees, modules -> {
            Assert.checkNull(rootModules);
            Assert.checkNull(allModules);
            this.rootModules = modules;
            setupAllModules(); //initialize the module graph
            Assert.checkNonNull(allModules);
            inInitModules = false;
        }, null);
    } finally {
        inInitModules = false;
    }
}
 
Example 3
private void appendString(JCTree tree) {
    Type t = tree.type.baseType();
    if (!t.isPrimitive() && t.tsym != syms.stringType.tsym) {
        t = syms.objectType;
    }

    Assert.checkNull(t.constValue());
    Symbol method = sbAppends.get(t);
    if (method == null) {
        method = rs.resolveInternalMethod(tree.pos(), gen.getAttrEnv(), syms.stringBuilderType, names.append, List.of(t), null);
        sbAppends.put(t, method);
    }

    gen.getItems().makeMemberItem(method, false).invoke();
}
 
Example 4
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(context, processors);
}
 
Example 5
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(context, processors);
}
 
Example 6
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(context, processors);
}
 
Example 7
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(processors);
}
 
Example 8
public void setRepeatable(Compound repeatable) {
    Assert.checkNull(this.repeatable);
    this.repeatable = repeatable;
}
 
Example 9
public void setTarget(Compound target) {
    Assert.checkNull(this.target);
        this.target = target;
}
 
Example 10
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(context, processors);
}
 
Example 11
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(processors);
}
 
Example 12
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(context, processors);
}
 
Example 13
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(context, processors);
}
 
Example 14
public void setProcessors(Iterable<? extends Processor> processors) {
    Assert.checkNull(discoveredProcs);
    initProcessorIterator(context, processors);
}