Java 类com.sun.source.tree.ProvidesTree 实例源码

项目:incubator-netbeans    文件:TreeDuplicator.java   
@Override
public Tree visitProvides(ProvidesTree tree, Void p) {
    ProvidesTree n = make.Provides(tree.getServiceName(), tree.getImplementationNames());
    model.setType(n, model.getType(tree));
    comments.copyComments(tree, n);
    model.setPos(n, model.getPos(tree));
    return n;
}
项目:incubator-netbeans    文件:SemanticHighlighterBase.java   
@Override
public Void visitProvides(ProvidesTree tree, EnumSet<UseTypes> d) {
    tl.moveToOffset(sourcePositions.getStartPosition(info.getCompilationUnit(), tree));
    Token t = firstIdentifierToken("provides"); //NOI18N
    if (t != null) {
        contextKeywords.add(t);
    }
    scan(tree.getServiceName(), d);
    tl.moveToOffset(sourcePositions.getEndPosition(info.getCompilationUnit(), tree.getServiceName()));
    t = firstIdentifierToken("with"); //NOI18N
    if (t != null) {
        contextKeywords.add(t);
    }
    return scan(tree.getImplementationNames(), d);
}
项目:incubator-netbeans    文件:TreeNode.java   
@Override
public Void visitProvides(ProvidesTree tree, List<Node> d) {
    List<Node> below = new ArrayList<Node>();

    addCorrespondingType(below);
    addCorrespondingComments(below);
    super.visitProvides(tree, below);

    d.add(new TreeNode(info, getCurrentPath(), below));
    return null;
}
项目:incubator-netbeans    文件:ExpectedTypeResolver.java   
@Override
public List<? extends TypeMirror> visitProvides(ProvidesTree node, Object p) {
    return null;
}
项目:incubator-netbeans    文件:EvaluatorVisitor.java   
@Override
public Mirror visitProvides(ProvidesTree node, EvaluationContext p) {
    Assert.error(node, "noModules");
    return super.visitProvides(node, p);
}
项目:incubator-netbeans    文件:CanInterpretVisitor.java   
@Override
public Boolean visitProvides(ProvidesTree node, EvaluationContext p) {
    return Boolean.FALSE;
}
项目:moduletools    文件:JavacModuleParser.java   
public void visitProvides(ProvidesTree node, @SuppressWarnings("unused") TreeVisitor<?, ?> __) {
  mv.visitProvide(qualifiedString(node.getServiceName()), toArray(node.getImplementationNames()));
}
项目:pro    文件:JavacModuleParser.java   
public void visitProvides(ProvidesTree node, @SuppressWarnings("unused") TreeVisitor<?, ?> __) {
  mv.visitProvide(qualifiedString(node.getServiceName()), toArray(node.getImplementationNames()));
}