本文整理了Java中antlr.collections.impl.BitSet.member()
方法的一些代码示例,展示了BitSet.member()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BitSet.member()
方法的具体详情如下:
包路径:antlr.collections.impl.BitSet
类名称:BitSet
方法名:member
暂无
代码示例来源:origin: checkstyle/checkstyle
public final void lambdaBody() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST lambdaBody_AST = null;
{
if ((_tokenSet_12.member(LA(1))) && (_tokenSet_69.member(LA(2)))) {
expression();
astFactory.addASTChild(currentAST, returnAST);
}
else if ((_tokenSet_36.member(LA(1))) && (_tokenSet_69.member(LA(2)))) {
statement();
astFactory.addASTChild(currentAST, returnAST);
}
else {
throw new NoViableAltException(LT(1), getFilename());
}
}
lambdaBody_AST = (AST)currentAST.root;
returnAST = lambdaBody_AST;
}
代码示例来源:origin: checkstyle/checkstyle
if ((_tokenSet_9.member(LA(1)))) {
mID_PART(false);
代码示例来源:origin: checkstyle/checkstyle
public final void annotationArguments() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST annotationArguments_AST = null;
if ((_tokenSet_10.member(LA(1))) && (_tokenSet_11.member(LA(2)))) {
annotationMemberValueInitializer();
astFactory.addASTChild(currentAST, returnAST);
annotationArguments_AST = (AST)currentAST.root;
}
else if ((LA(1)==IDENT) && (LA(2)==ASSIGN)) {
annotationMemberValuePairs();
astFactory.addASTChild(currentAST, returnAST);
annotationArguments_AST = (AST)currentAST.root;
}
else {
throw new NoViableAltException(LT(1), getFilename());
}
returnAST = annotationArguments_AST;
}
代码示例来源:origin: hibernate/hibernate-orm
/**
* In this grammar, basically any string since we (atm) have no keywords
*/
public final void mNAME(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = NAME;
int _saveIndex;
mNAME_START(false);
{
_loop785:
do {
if ((_tokenSet_0.member(LA(1)))) {
mNAME_CONTINUATION(false);
}
else {
break _loop785;
}
} while (true);
}
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
代码示例来源:origin: hibernate/hibernate-orm
public final void mIDENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = IDENT;
int _saveIndex;
mID_START_LETTER(false);
{
_loop67:
do {
if ((_tokenSet_1.member(LA(1)))) {
mID_LETTER(false);
}
else {
break _loop67;
}
} while (true);
}
_ttype = testLiteralsTable(_ttype);
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
代码示例来源:origin: jenkinsci/jenkins
public final void mATOM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = ATOM;
int _saveIndex;
{
int _cnt26=0;
_loop26:
do {
if ((_tokenSet_0.member(LA(1)))) {
mIDENTIFIER_PART(false);
}
else {
if ( _cnt26>=1 ) { break _loop26; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
}
_cnt26++;
} while (true);
}
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
代码示例来源:origin: hibernate/hibernate-orm
if ((_tokenSet_1.member(LA(1)))) {
mID_LETTER(false);
代码示例来源:origin: checkstyle/checkstyle
public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = STRING_LITERAL;
int _saveIndex;
match('"');
{
_loop444:
do {
if ((LA(1)=='\\')) {
mESC(false);
}
else if ((_tokenSet_6.member(LA(1)))) {
matchNot('"');
}
else {
break _loop444;
}
} while (true);
}
match('"');
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
代码示例来源:origin: checkstyle/checkstyle
_loop245:
do {
if (((_tokenSet_36.member(LA(1))) && (_tokenSet_59.member(LA(2))))&&(LA(1)!=LITERAL_default)) {
statement();
astFactory.addASTChild(currentAST, returnAST);
代码示例来源:origin: hibernate/hibernate-orm
protected final void mID_LETTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = ID_LETTER;
int _saveIndex;
if ((_tokenSet_0.member(LA(1)))) {
mID_START_LETTER(false);
}
else if (((LA(1) >= '0' && LA(1) <= '9'))) {
matchRange('0','9');
}
else {
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
}
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
代码示例来源:origin: hibernate/hibernate-orm
protected final void mID_LETTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = ID_LETTER;
int _saveIndex;
if ((_tokenSet_0.member(LA(1)))) {
mID_START_LETTER(false);
}
else if (((LA(1) >= '0' && LA(1) <= '9'))) {
matchRange('0','9');
}
else {
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
}
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
代码示例来源:origin: hibernate/hibernate-orm
identPrimaryBase_AST = (AST)currentAST.root;
else if ((LA(1)==IDENT) && (_tokenSet_13.member(LA(2))) && (_tokenSet_45.member(LA(3)))) {
identifier();
i_AST = (AST)returnAST;
代码示例来源:origin: checkstyle/checkstyle
public final void mCHAR_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
int _ttype; Token _token=null; int _begin=text.length();
_ttype = CHAR_LITERAL;
int _saveIndex;
match('\'');
{
if ((LA(1)=='\\')) {
mESC(false);
}
else if ((_tokenSet_3.member(LA(1)))) {
matchNot('\'');
}
else {
throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
}
}
match('\'');
if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
_token = makeToken(_ttype);
_token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
}
_returnToken = _token;
}
代码示例来源:origin: apache/geode
public final void query() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST query_AST = null;
{
if ((LA(1)==TOK_LT||LA(1)==LITERAL_select)) {
selectExpr();
astFactory.addASTChild(currentAST, returnAST);
}
else if ((_tokenSet_4.member(LA(1)))) {
expr();
astFactory.addASTChild(currentAST, returnAST);
}
else {
throw new NoViableAltException(LT(1), getFilename());
}
}
query_AST = (AST)currentAST.root;
returnAST = query_AST;
}
代码示例来源:origin: hibernate/hibernate-orm
orderExpr_AST = (AST)currentAST.root;
else if ((_tokenSet_0.member(_t.getType()))) {
expr(_t, null );
_t = _retTree;
代码示例来源:origin: checkstyle/checkstyle
public final void argList() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST argList_AST = null;
{
if (((_tokenSet_12.member(LA(1))))&&(LA(1)!=RPAREN)) {
expressionList();
astFactory.addASTChild(currentAST, returnAST);
}
else if ((LA(1)==RPAREN)) {
if ( inputState.guessing==0 ) {
argList_AST = (AST)currentAST.root;
argList_AST = astFactory.create(ELIST,"ELIST");
currentAST.root = argList_AST;
currentAST.child = argList_AST!=null &&argList_AST.getFirstChild()!=null ?
argList_AST.getFirstChild() : argList_AST;
currentAST.advanceChildToEnd();
}
}
else {
throw new NoViableAltException(LT(1), getFilename());
}
}
argList_AST = (AST)currentAST.root;
returnAST = argList_AST;
}
代码示例来源:origin: checkstyle/checkstyle
if ((_tokenSet_4.member(LA(1)))) {
modifier();
astFactory.addASTChild(currentAST, returnAST);
代码示例来源:origin: checkstyle/checkstyle
if ((_tokenSet_36.member(LA(1)))) {
statement();
astFactory.addASTChild(currentAST, returnAST);
代码示例来源:origin: hibernate/hibernate-orm
public final void caseExpression() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST caseExpression_AST = null;
try { // for error handling
if ((LA(1)==CASE) && (_tokenSet_41.member(LA(2)))) {
simpleCaseStatement();
astFactory.addASTChild(currentAST, returnAST);
caseExpression_AST = (AST)currentAST.root;
}
else if ((LA(1)==CASE) && (LA(2)==WHEN)) {
searchedCaseStatement();
astFactory.addASTChild(currentAST, returnAST);
caseExpression_AST = (AST)currentAST.root;
}
else {
throw new NoViableAltException(LT(1), getFilename());
}
}
catch (RecognitionException ex) {
reportError(ex);
recover(ex,_tokenSet_40);
}
returnAST = caseExpression_AST;
}
代码示例来源:origin: hibernate/hibernate-orm
public final void joinPath() throws RecognitionException, TokenStreamException {
returnAST = null;
ASTPair currentAST = new ASTPair();
AST joinPath_AST = null;
try { // for error handling
if (((LA(1)==IDENT) && (LA(2)==OPEN))&&( validateSoftKeyword("treat") && LA(2) == OPEN )) {
castedJoinPath();
astFactory.addASTChild(currentAST, returnAST);
joinPath_AST = (AST)currentAST.root;
}
else if ((LA(1)==IDENT) && (_tokenSet_22.member(LA(2)))) {
path();
astFactory.addASTChild(currentAST, returnAST);
joinPath_AST = (AST)currentAST.root;
}
else {
throw new NoViableAltException(LT(1), getFilename());
}
}
catch (RecognitionException ex) {
reportError(ex);
recover(ex,_tokenSet_23);
}
returnAST = joinPath_AST;
}
内容来源于网络,如有侵权,请联系作者删除!