Rule unqualifiedThisOrSuperLiteral() { return Sequence( FirstOf(String("this"), String("super")).label("thisOrSuper"), group.basics.testLexBreak(), group.basics.optWS(), TestNot(Ch('(')), set(actions.createThisOrSuperOrClass(null, text("thisOrSuper"), null))); }
Rule unqualifiedThisOrSuperLiteral() { return Sequence( FirstOf(String("this"), String("super")).label("thisOrSuper"), group.basics.testLexBreak(), group.basics.optWS(), TestNot(Ch('(')), set(actions.createThisOrSuperOrClass(null, text("thisOrSuper"), null))); }
Rule unqualifiedThisOrSuperLiteral() { return Sequence( FirstOf(String("this"), String("super")).label("thisOrSuper"), group.basics.testLexBreak(), group.basics.optWS(), TestNot(Ch('(')), set(actions.createThisOrSuperOrClass(null, text("thisOrSuper"), null))); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.8.2">JLS section 15.8.2</a> */ Rule qualifiedClassOrThisOrSuperLiteral() { return Sequence( group.types.type().label("type"), Ch('.').label("dot"), group.basics.optWS(), FirstOf(String("this"), String("super"), String("class")).label("thisOrSuperOrClass"), group.basics.testLexBreak(), group.basics.optWS(), set(actions.createThisOrSuperOrClass(node("dot"), text("thisOrSuperOrClass"), value("type")))); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.8.2">JLS section 15.8.2</a> */ Rule qualifiedClassOrThisOrSuperLiteral() { return Sequence( group.types.type().label("type"), Ch('.').label("dot"), group.basics.optWS(), FirstOf(String("this"), String("super"), String("class")).label("thisOrSuperOrClass"), group.basics.testLexBreak(), group.basics.optWS(), set(actions.createThisOrSuperOrClass(node("dot"), text("thisOrSuperOrClass"), value("type")))); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.8.2">JLS section 15.8.2</a> */ Rule qualifiedClassOrThisOrSuperLiteral() { return Sequence( group.types.type().label("type"), Ch('.').label("dot"), group.basics.optWS(), FirstOf(String("this"), String("super"), String("class")).label("thisOrSuperOrClass"), group.basics.testLexBreak(), group.basics.optWS(), set(actions.createThisOrSuperOrClass(node("dot"), text("thisOrSuperOrClass"), value("type")))); }