本文整理汇总了Java中com.sun.source.tree.ProvidesTree类的典型用法代码示例。如果您正苦于以下问题:Java ProvidesTree类的具体用法?Java ProvidesTree怎么用?Java ProvidesTree使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProvidesTree类属于com.sun.source.tree包,在下文中一共展示了ProvidesTree类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visitProvides
import com.sun.source.tree.ProvidesTree; //导入依赖的package包/类
@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;
}
示例2: visitProvides
import com.sun.source.tree.ProvidesTree; //导入依赖的package包/类
@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);
}
示例3: visitProvides
import com.sun.source.tree.ProvidesTree; //导入依赖的package包/类
@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;
}
示例4: visitProvides
import com.sun.source.tree.ProvidesTree; //导入依赖的package包/类
@Override
public List<? extends TypeMirror> visitProvides(ProvidesTree node, Object p) {
return null;
}
示例5: visitProvides
import com.sun.source.tree.ProvidesTree; //导入依赖的package包/类
@Override
public Mirror visitProvides(ProvidesTree node, EvaluationContext p) {
Assert.error(node, "noModules");
return super.visitProvides(node, p);
}
示例6: visitProvides
import com.sun.source.tree.ProvidesTree; //导入依赖的package包/类
@Override
public Boolean visitProvides(ProvidesTree node, EvaluationContext p) {
return Boolean.FALSE;
}
示例7: visitProvides
import com.sun.source.tree.ProvidesTree; //导入依赖的package包/类
public void visitProvides(ProvidesTree node, @SuppressWarnings("unused") TreeVisitor<?, ?> __) {
mv.visitProvide(qualifiedString(node.getServiceName()), toArray(node.getImplementationNames()));
}