-
- All Known Subinterfaces:
-
ArrayAccessTree,ArrayLiteralTree,AssignmentTree,BinaryTree,BlockTree,BreakTree,CaseTree,CatchTree,ClassDeclarationTree,ClassExpressionTree,CompilationUnitTree,CompoundAssignmentTree,ConditionalExpressionTree,ConditionalLoopTree,ContinueTree,DebuggerTree,DoWhileLoopTree,EmptyStatementTree,ErroneousTree,ExportEntryTree,ExpressionStatementTree,ExpressionTree,ForInLoopTree,ForLoopTree,ForOfLoopTree,FunctionCallTree,FunctionDeclarationTree,FunctionExpressionTree,GotoTree,IdentifierTree,IfTree,ImportEntryTree,InstanceOfTree,LabeledStatementTree,LiteralTree,LoopTree,MemberSelectTree,ModuleTree,NewTree,ObjectLiteralTree,ParenthesizedTree,PropertyTree,RegExpLiteralTree,ReturnTree,SpreadTree,StatementTree,SwitchTree,TemplateLiteralTree,ThrowTree,TryTree,UnaryTree,VariableTree,WhileLoopTree,WithTree,YieldTree
@Deprecated(since="11", forRemoval=true) public interface 树
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.抽象语法树中所有节点的公共接口。警告:随着ECMAScript编程语言的发展,此接口及其子接口可能会发生变化。
- 从以下版本开始:
- 9
-
-
嵌套类汇总
嵌套类 变量和类型 接口 描述 static classTree.Kind不推荐使用,要删除:此API元素将在以后的版本中删除。Nashorn JavaScript脚本引擎和API以及jjs工具已弃用,目的是在将来的版本中删除它们。
-
方法摘要
所有方法 实例方法 抽象方法 弃用的方法 变量和类型 方法 描述 <R,D>
Raccept(TreeVisitor<R,D> visitor, D data)不推荐使用,要删除:此API元素将在以后的版本中删除。接受用于实现访问者模式的方法。longgetEndPosition()不推荐使用,要删除:此API元素将在以后的版本中删除。源中此树的结束字符偏移量。Tree.KindgetKind()不推荐使用,要删除:此API元素将在以后的版本中删除。获取此树的种类。longgetStartPosition()不推荐使用,要删除:此API元素将在以后的版本中删除。在源中启动此树的字符偏移量。
-
-
-
方法详细信息
-
getStartPosition
long getStartPosition()
Deprecated, for removal: This API element is subject to removal in a future version.在源中启动此树的字符偏移量。- 结果
- 这个职位
-
getEndPosition
long getEndPosition()
Deprecated, for removal: This API element is subject to removal in a future version.源中此树的结束字符偏移量。- 结果
- 这个职位
-
getKind
Tree.Kind getKind()
Deprecated, for removal: This API element is subject to removal in a future version.获取此树的种类。- 结果
- 这种树的那种。
-
accept
<R,D> R accept(TreeVisitor<R,D> visitor, D data)
Deprecated, for removal: This API element is subject to removal in a future version.接受用于实现访问者模式的方法。 访问者模式用于在树上实现操作。- 参数类型
-
R- 此操作的结果类型。 -
D- 附加数据的类型。 - 参数
-
visitor- 树访客 -
data- 传递给访问者方法的其他数据 - 结果
- 访问者访问方法的价值
-
-