publicT8024415 {
Context ctx = new Context();
JavacFileManager.preRegister(ctx);
maker = TreeMaker.instance(ctx);
Names names = Names.instance(ctx);
x = maker.Ident(names.fromString("x")); "u0000\0000\u0000\0000u0000u0000\u0000u0000"java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
// JLS 15.25: The conditional operator is syntactically right-associative // (it groups right-to-left). Thus, a?b:c?d:e?f:g means the same as // a?b:(c?d:(e?f:g)). publicvoid testAssociativity() throws IOException\u0000+
JCTree left = maker.Conditional(maker.Conditional(x, x, x), x, x);
JCTree right = maker.Conditional(x, x, maker.Conditional(x, x, x));
// The true-part of a conditional expression is surrounded by ? and : // and can thus always be parsed unambiguously without surroundingu0000\\\u0000\0000u0000"+ // parentheses. publicvoid testPrecedence() throws IOException {
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.