814N/A * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 0N/A/** Utility class containing inspector methods for trees. 580N/A * <p><b>This is NOT part of any supported API. 580N/A * If you write code that depends on this, you do so at your own risk. 0N/A * This code and its internal interfaces are subject to change or 0N/A * deletion without notice.</b> 0N/A /** The names of all operators. 0N/A /** Return name of operator with given tree tag. 0N/A /** Is tree a constructor declaration? 0N/A /** Is there a constructor declaration in the given list of trees? 0N/A /** Is statement an initializer for a synthetic field? 0N/A /** If the expression is a method call, return the method name, null 0N/A /** Is this a call to this or super? 0N/A /** Is this a call to super? 0N/A /** Is this a constructor whose first (non-synthetic) statement is not 0N/A * of the form this(...)? 0N/A /** Return the first call in a constructor definition. */ 0N/A // Synthetic initializations can appear before the super call. 536N/A /** Return true if a tree represents a diamond new expr. */ 0N/A /** Return true if a tree represents the null literal. */ 0N/A /** The position of the first statement in a block, or the position of 0N/A * the block itself if it is empty. 0N/A /** The end position of given tree, if it is a block with 0N/A /** Get the start position for a tree node. The start position is 0N/A * defined to be the position of the first character of the first 0N/A * token of the node's source text. 0N/A * @param tree The tree node 0N/A /** The end position of given tree, given a table of end positions generated by the parser 0N/A // fall back on limited info in the tree 0N/A /** A DiagnosticPosition with the preferred position set to the 0N/A * end position of given tree, if it is a block with 0N/A /** Find the position for reporting an error about a symbol, where 0N/A * that symbol is defined somewhere in the given tree. */ 0N/A /** Find the position for reporting an error about a symbol, where 0N/A * that symbol is defined somewhere in the given tree. */ 0N/A /** Find the declaration for a symbol, where 0N/A * that symbol is defined somewhere in the given tree. */ 0N/A // TODO: not implemented yet 0N/A /** Return the statement referenced by a label. 0N/A * If the label refers to a loop or switch, return that switch 0N/A * otherwise return the labelled statement itself 0N/A /** Skip parens and return the enclosed expression 0N/A /** Skip parens and return the enclosed expression 0N/A /** Return the types of a list of trees. 0N/A /** If this tree is an identifier or a field or a parameterized type, 0N/A * return its name, otherwise return null. 0N/A /** If this tree is a qualified identifier, its return fully qualified name, 0N/A * otherwise return null. 0N/A /** If this tree is an identifier or a field, return its symbol, 0N/A * otherwise return null. 0N/A /** Return true if this is a nonstatic selection. */ 0N/A /** If this tree is an identifier or a field, set its symbol, otherwise skip. 0N/A /** If this tree is a declaration or a block, return its flags field, 0N/A * otherwise return 0. 0N/A /** Return first (smallest) flag in `flags': 0N/A /** Return flags as a string, separated by " ". 0N/A /** Operator precedences values. 0N/A public static final int 0N/A /** Map operators to their precedence levels. 0N/A // Postfix expressions 0N/A // Multiplicative operators 0N/A // Additive operators 0N/A // Relational operators 0N/A // Equality operators 0N/A // Bitwise and logical operators 0N/A // Conditional operators 0N/A // Assignment operators 0N/A // Null check (implementation detail), for example, __.getClass() 307N/A * Returns the underlying type of the tree if it is annotated type, 307N/A * or the tree itself otherwise