本文整理汇总了Java中org.sonar.plugins.java.api.tree.Tree.Kind方法的典型用法代码示例。如果您正苦于以下问题:Java Tree.Kind方法的具体用法?Java Tree.Kind怎么用?Java Tree.Kind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.sonar.plugins.java.api.tree.Tree
的用法示例。
在下文中一共展示了Tree.Kind方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ASTDotNode
import org.sonar.plugins.java.api.tree.Tree; //导入方法依赖的package包/类
public ASTDotNode(int id, String label, Tree.Kind kind) {
super(id);
this.label = label;
this.highlighting = (kind == Tree.Kind.COMPILATION_UNIT ? Highlighting.FIRST_NODE : null);
this.details = new ASTNodeDetailsDto(kind);
}
示例2: ASTNodeDetailsDto
import org.sonar.plugins.java.api.tree.Tree; //导入方法依赖的package包/类
public ASTNodeDetailsDto(Tree.Kind kind) {
this.kind = kind.name();
}
示例3: nodesToVisit
import org.sonar.plugins.java.api.tree.Tree; //导入方法依赖的package包/类
@Override
public List<Tree.Kind> nodesToVisit() {
return ImmutableList.of(Tree.Kind.NEW_CLASS);
}
示例4: nodesToVisit
import org.sonar.plugins.java.api.tree.Tree; //导入方法依赖的package包/类
@Override
public List<Tree.Kind> nodesToVisit() {
// Register to the kind of nodes you want to be called upon visit.
return ImmutableList.of(Tree.Kind.METHOD);
}
示例5: nodesToVisit
import org.sonar.plugins.java.api.tree.Tree; //导入方法依赖的package包/类
@Override
public List<Tree.Kind> nodesToVisit() {
// Register to the kind of nodes you want to be called upon visit.
return ImmutableList.of(Tree.Kind.CLASS);
}
示例6: nodesToVisit
import org.sonar.plugins.java.api.tree.Tree; //导入方法依赖的package包/类
@Override
public List<Tree.Kind> nodesToVisit() {
return ImmutableList.of(Tree.Kind.METHOD_INVOCATION);
}
示例7: nodesToVisit
import org.sonar.plugins.java.api.tree.Tree; //导入方法依赖的package包/类
@Override
public List<Tree.Kind> nodesToVisit() {
return ACCEPTED_NODE_KINDS;
}