Method Summary |
|
public static Name | calledMethodName(JCTree tree) If the expression is a method call, return the method name, null
otherwise. |
public static JCTree | declarationFor(Symbol sym, JCTree tree) Find the declaration for a symbol, where
that symbol is defined somewhere in the given tree. |
public static DiagnosticPosition | diagEndPos(JCTree tree) A DiagnosticPosition with the preferred position set to the
end position of given tree, if it is a block with
defined endpos. |
public static DiagnosticPosition | diagnosticPositionFor(Symbol sym, JCTree tree) Find the position for reporting an error about a symbol, where
that symbol is defined somewhere in the given tree. |
public static int | endPos(JCTree tree) The end position of given tree, if it is a block with
defined endpos. |
public static int | finalizerPos(JCTree tree) The position of the finalizer of given try/synchronized statement. |
public static JCMethodInvocation | firstConstructorCall(JCTree tree) Return the first call in a constructor definition. |
public static long | firstFlag(long flags) |
public static int | firstStatPos(JCTree tree) The position of the first statement in a block, or the position of
the block itself if it is empty. |
public static String | flagNames(long flags) Return flags as a string, separated by " ". |
public static long | flags(JCTree tree) If this tree is a declaration or a block, return its flags field,
otherwise return 0. |
public static Name | fullName(JCTree tree) If this tree is a qualified identifier, its return fully qualified name,
otherwise return null. |
public static int | getEndPos(JCTree tree, Map<JCTree, Integer> endPositions) |
public static int | getStartPos(JCTree tree) Get the start position for a tree node. |
public static boolean | hasConstructors(List<JCTree> trees) |
public static TreeInfo | instance(Context context) |
public static boolean | isConstructor(JCTree tree) |
public static boolean | isInitialConstructor(JCTree tree) |
public static boolean | isNull(JCTree tree) Return true if a tree represents the null literal. |
public static boolean | isSelfCall(JCTree tree) |
public static boolean | isSuperCall(JCTree tree) |
public static boolean | isSyntheticInit(JCTree stat) |
public static Name | name(JCTree tree) If this tree is an identifier or a field or a parameterized type,
return its name, otherwise return null. |
public static boolean | nonstaticSelect(JCTree tree) Return true if this is a nonstatic selection. |
public static int | opPrec(int op) Map operators to their precedence levels. |
public Name | operatorName(int tag) Return name of operator with given tree tag. |
public static List<JCTree> | pathFor(JCTree node, JCCompilationUnit unit) |
public static int | positionFor(Symbol sym, JCTree tree) Find the position for reporting an error about a symbol, where
that symbol is defined somewhere in the given tree. |
public static JCTree | referencedStatement(JCLabeledStatement tree) Return the statement referenced by a label. |
public static Env<AttrContext> | scopeFor(JCTree node, JCCompilationUnit unit) |
public static Env<AttrContext> | scopeFor(List<JCTree> path) |
public static void | setSymbol(JCTree tree, Symbol sym) If this tree is an identifier or a field, set its symbol, otherwise skip. |
public static JCExpression | skipParens(JCExpression tree) |
public static JCTree | skipParens(JCTree tree) |
public static Symbol | symbol(JCTree tree) If this tree is an identifier or a field, return its symbol,
otherwise return null. |
public static Symbol | symbolFor(JCTree node) |
static Tree.Kind | tagToKind(int tag) |
public static List<Type> | types(List<? extends JCTree> trees) Return the types of a list of trees. |