325N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 325N/A * This code is free software; you can redistribute it and/or modify it 325N/A * under the terms of the GNU General Public License version 2 only, as 325N/A * published by the Free Software Foundation. Oracle designates this 325N/A * particular file as subject to the "Classpath" exception as provided 325N/A * by Oracle in the LICENSE file that accompanied this code. 325N/A * This code is distributed in the hope that it will be useful, but WITHOUT 325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 325N/A * version 2 for more details (a copy is included in the LICENSE file that 325N/A * accompanied this code). 325N/A * You should have received a copy of the GNU General Public License version 325N/A * 2 along with this work; if not, write to the Free Software Foundation, 325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 325N/A * or visit www.oracle.com if you need additional information or have any 325N/A * Factory methods that generate various {@link JExpression}s. 325N/A * This class is not instanciable. 325N/A * Generates {@code new T[size]}. 325N/A * The type of the array component. 'T' or {@code new T[size]}. 325N/A // you cannot create an array whose component type is a generic 325N/A * Generates {@code new T[size]}. 325N/A * The type of the array component. 'T' or {@code new T[size]}. 325N/A * Returns a reference to "this", an implicit reference 325N/A * to the current object. 325N/A * Returns a reference to "super", an implicit reference 325N/A * Boolean constant that represents <code>true</code> 325N/A * Boolean constant that represents <code>false</code> 325N/A return new JAtom(
"java.lang.Float.NEGATIVE_INFINITY");
325N/A return new JAtom(
"java.lang.Float.POSITIVE_INFINITY");
325N/A return new JAtom(
"java.lang.Double.NEGATIVE_INFINITY");
325N/A return new JAtom(
"java.lang.Double.POSITIVE_INFINITY");
325N/A * Escapes the given string, then surrounds it by the specified 325N/A for (
int i =
0; i < n; i++) {
325N/A // technically Unicode escape shouldn't be done here, 325N/A // for it's a lexical level handling. 325N/A // However, various tools are so broken around this area, 325N/A // so just to be on the safe side, it's better to do 325N/A // the escaping here (regardless of the actual file encoding) 325N/A if( c<
0x20 ||
0x7E<c ) {
325N/A // not printable. use Unicode escape 325N/A * Creates an expression directly from a source code fragment. 325N/A * This method can be used as a short-cut to create a JExpression. 325N/A * For example, instead of <code>_a.gt(_b)</code>, you can write 325N/A * it as: <code>JExpr.direct("a>b")</code>. 325N/A * Be warned that there is a danger in using this method, 325N/A * as it obfuscates the object model.