當前位置: 首頁>>代碼示例>>Java>>正文


Java ProvidesTree類代碼示例

本文整理匯總了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;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,代碼來源:TreeDuplicator.java

示例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);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:16,代碼來源:SemanticHighlighterBase.java

示例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;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:12,代碼來源:TreeNode.java

示例4: visitProvides

import com.sun.source.tree.ProvidesTree; //導入依賴的package包/類
@Override
public List<? extends TypeMirror> visitProvides(ProvidesTree node, Object p) {
    return null;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:5,代碼來源:ExpectedTypeResolver.java

示例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);
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:6,代碼來源:EvaluatorVisitor.java

示例6: visitProvides

import com.sun.source.tree.ProvidesTree; //導入依賴的package包/類
@Override
public Boolean visitProvides(ProvidesTree node, EvaluationContext p) {
    return Boolean.FALSE;
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:5,代碼來源:CanInterpretVisitor.java

示例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()));
}
 
開發者ID:forax,項目名稱:moduletools,代碼行數:4,代碼來源:JavacModuleParser.java


注:本文中的com.sun.source.tree.ProvidesTree類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。