APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface BlockTree

extends StatementTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCBlock
Imports
java.util.List

A tree node for a statement block. For example:
  { }

  { statements }

  static { statements }
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.2 Blocks

Method Summary

Modifier and TypeMethod and Description
public List<? extends StatementTree>

Returns:

the statements
getStatements
()

Returns the statements comprising this block.

public boolean

Returns:

true if this is a static initializer block
isStatic
()

Returns true if and only if this is a static initializer block.

Method Detail

getStatementsback to summary
public List<? extends StatementTree> getStatements()

Returns the statements comprising this block.

Returns:List<? extends StatementTree>

the statements

isStaticback to summary
public boolean isStatic()

Returns true if and only if this is a static initializer block.

Returns:boolean

true if this is a static initializer block