Uses of Interface
com.sun.source.tree.CompilationUnitTree
-
Packages that use CompilationUnitTree 软件包 描述 com.sun.source.tree 提供将源代码表示为抽象语法树(AST)的接口。com.sun.source.util 为抽象语法树(AST)上的操作提供实用程序。 -
-
Uses of CompilationUnitTree in com.sun.source.tree
Methods in com.sun.source.tree with parameters of type CompilationUnitTree 变量和类型 方法 描述 R
TreeVisitor. visitCompilationUnit(CompilationUnitTree node, P p)
访问CompilationUnitTree节点。 -
Uses of CompilationUnitTree in com.sun.source.util
Methods in com.sun.source.util that return CompilationUnitTree 变量和类型 方法 描述 CompilationUnitTree
TaskEvent. getCompilationUnit()
返回此事件的编译单元。CompilationUnitTree
TreePath. getCompilationUnit()
返回与此路径关联的编译单元。Methods in com.sun.source.util that return types with arguments of type CompilationUnitTree 变量和类型 方法 描述 abstract Iterable<? extends CompilationUnitTree>
JavacTask. parse()
解析返回抽象语法树列表的指定文件。Methods in com.sun.source.util with parameters of type CompilationUnitTree 变量和类型 方法 描述 long
DocSourcePositions. getEndPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
返回文件中注释中树的结束位置。long
SourcePositions. getEndPosition(CompilationUnitTree file, 树 tree)
返回文件中树的结束位置。static TreePath
TreePath. getPath(CompilationUnitTree unit, 树 target)
返回编译单元中树节点的树路径,如果找不到节点,则null
。abstract TreePath
Trees. getPath(CompilationUnitTree unit, 树 node)
返回指定编译单元中树节点的路径。long
DocSourcePositions. getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree)
返回文件中注释中树的起始位置。long
SourcePositions. getStartPosition(CompilationUnitTree file, 树 tree)
返回文件中树的起始位置。abstract void
DocTrees. printMessage(Diagnostic.Kind kind, CharSequence msg, DocTree t, DocCommentTree c, CompilationUnitTree root)
在提供的编译单元中的树的位置打印指定种类的消息abstract void
Trees. printMessage(Diagnostic.Kind kind, CharSequence msg, 树 t, CompilationUnitTree root)
在提供的编译单元中的树的位置打印指定种类的消息R
SimpleTreeVisitor. visitCompilationUnit(CompilationUnitTree node, P p)
访问CompilationUnitTree节点。R
TreeScanner. visitCompilationUnit(CompilationUnitTree node, P p)
访问CompilationUnitTree节点。Constructors in com.sun.source.util with parameters of type CompilationUnitTree 构造器 描述 TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit)
为给定种类和编译单元创建任务事件。TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit, TypeElement clazz)
为给定种类,编译单元和类型元素创建任务事件。TreePath(CompilationUnitTree node)
Creates a TreePath for a root node.
-