本文整理匯總了Java中com.sun.source.tree.UsesTree類的典型用法代碼示例。如果您正苦於以下問題:Java UsesTree類的具體用法?Java UsesTree怎麽用?Java UsesTree使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
UsesTree類屬於com.sun.source.tree包,在下文中一共展示了UsesTree類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: visitUses
import com.sun.source.tree.UsesTree; //導入依賴的package包/類
@Override
public Tree visitUses(UsesTree tree, Void p) {
UsesTree n = make.Uses(tree.getServiceName());
model.setType(n, model.getType(tree));
comments.copyComments(tree, n);
model.setPos(n, model.getPos(tree));
return n;
}
示例2: visitUses
import com.sun.source.tree.UsesTree; //導入依賴的package包/類
@Override
public Void visitUses(UsesTree tree, EnumSet<UseTypes> d) {
tl.moveToOffset(sourcePositions.getStartPosition(info.getCompilationUnit(), tree));
Token t = firstIdentifierToken("uses"); //NOI18N
if (t != null) {
contextKeywords.add(t);
}
return super.visitUses(tree, d);
}
示例3: visitUses
import com.sun.source.tree.UsesTree; //導入依賴的package包/類
@Override
public Void visitUses(UsesTree tree, List<Node> d) {
List<Node> below = new ArrayList<Node>();
addCorrespondingType(below);
addCorrespondingComments(below);
super.visitUses(tree, below);
d.add(new TreeNode(info, getCurrentPath(), below));
return null;
}
示例4: visitUses
import com.sun.source.tree.UsesTree; //導入依賴的package包/類
@Override
public List<? extends TypeMirror> visitUses(UsesTree node, Object p) {
return null;
}
示例5: visitUses
import com.sun.source.tree.UsesTree; //導入依賴的package包/類
@Override
public Mirror visitUses(UsesTree node, EvaluationContext p) {
Assert.error(node, "noModules");
return super.visitUses(node, p);
}
示例6: visitUses
import com.sun.source.tree.UsesTree; //導入依賴的package包/類
@Override
public Boolean visitUses(UsesTree node, EvaluationContext p) {
return Boolean.FALSE;
}
示例7: visitUses
import com.sun.source.tree.UsesTree; //導入依賴的package包/類
public void visitUses(UsesTree node, @SuppressWarnings("unused") TreeVisitor<?, ?> __) {
mv.visitUse(qualifiedString(node.getServiceName()));
}