id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
7f7854fb-893f-4055-8e39-79d5cca2aa78 | public String toString() {
return "We're sorry, but the coder is to lazy to create a proper ASCII circle."; // It's true :-(
} |
02377d63-4937-453f-b471-6c4e85aae044 | public void setCustomInteger8(java.lang.Integer customInteger8) {
this.customInteger8 = customInteger8;
} |
b16d605b-63a2-4d34-a347-8006abefcc5b | public void setActivityId(crmondemand.xml.customobject6.query.QueryType activityId) {
this.activityId = activityId;
} |
3e4e518c-eda2-4147-b5c0-d2a725ff821b | public void setSolutionExpirationDate(crmondemand.xml.opportunity.query.QueryType solutionExpirationDate) {
this.solutionExpirationDate = solutionExpirationDate;
} |
315792a0-c716-450c-a3eb-79bca1620c6e | public void setCustomText72(crmondemand.xml.contact.query.QueryType customText72) {
this.customText72 = customText72;
} |
b0ce9285-d92b-497d-9bd1-f3b26525e8bc | public ASPoint(int x, int y, boolean passable) {
this.x = x;
this.y = y;
this.passable = passable;
} |
d113a06d-2329-476e-8fd4-ba398fb57f94 | public void update(){
pStateMachine.update();
} |
d4f78cad-e169-4fba-9152-7b2eaf60a8b2 | public void setFinancialAccountCurrencyCode(java.lang.String financialAccountCurrencyCode) {
this.financialAccountCurrencyCode = financialAccountCurrencyCode;
} |
afce456e-2049-4a23-b26c-9f31d247d40a | public java.lang.String getCustomText80() {
return this.customText80;
} |
4e81bd94-d6c4-4054-a599-4b818a67d8e9 | protected void drawBackground(Graphics2D g2d, int width, int height) {
LinearGradientPaint gradient = new LinearGradientPaint(width*0.7F, 0, width*0.3F, height,
new float[]{0,1},
new Color[]{new Color(0xc69c6d), new Color(0x754c24)});
g2d.setPaint(gradient);
g2d.fillRect(0, 0, width, height);
g2d.setColor(Color.BLACK);
} |
8c97b3d1-0e75-44f6-bdda-306bd7aebd79 | public void setCustomPickList81(crmondemand.xml.customobject6.query.QueryType customPickList81) {
this.customPickList81 = customPickList81;
} |
f622e0bb-776b-4d71-92ee-13d3d6ee195d | public void setExternalSystemId(java.lang.String externalSystemId) {
this.externalSystemId = externalSystemId;
} |
e1543373-40c7-40e2-80d7-b2970743c678 | public void setContactLastName(crmondemand.xml.customobject6.query.QueryType contactLastName) {
this.contactLastName = contactLastName;
} |
5a567da4-44f0-4b16-b6a2-9cbb854cc086 | public List<LexicalRule> GetLexicalRuleList() {
return mLexicalRuleList;
} |
344e8ce2-5249-4f9b-867c-e368712e3df2 | public java.math.BigDecimal getCustomNumber16() {
return this.customNumber16;
} |
76f40e5c-1471-4c91-87d6-d792cc5506e1 | public crmondemand.xml.contact.query.QueryType getCustomObject15ExternalSystemId() {
return this.customObject15ExternalSystemId;
} |
2bcd0f4c-f174-4fc8-86f6-67c94e902697 | public crmondemand.xml.opportunity.query.QueryType getCustomPickList93() {
return this.customPickList93;
} |
c8dd11b1-e477-43ae-9561-4e3848d1d2a8 | public java.math.BigDecimal getCustomNumber30() {
return this.customNumber30;
} |
2fe9ad20-5512-4c3b-a87b-3a39f68af9ed | public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.bwapi.proxy.messages.GameMessages.internal_static_messages_UnitId_descriptor;
} |
cbd6b171-c677-446a-a3b8-a0fa4391aeb4 | public void close()
throws SQLException
{
if(m_portal.isValid())
{
m_portal.close();
m_statement.resultSetClosed(this);
m_table = null;
m_tableRow = -1;
m_currentRow = null;
m_nextRow = null;
super.close();
}
} |
e8e6c005-82d1-4078-b388-91c142e0259d | @Test
public void testComputeConfidenceScore() {
double Score = testChain.computeConfidenceScore();
assertTrue("testing that first testChain has a Conf of 200.0", Score == 200.0 );
} |
113841ea-8607-4c69-9f9d-116c7a9b3383 | @Override
public Tracker getTracker(final int oldCount)
{
final Achievement me=this;
return new Tracker()
{
private volatile int count = oldCount;
@Override
public Achievement getAchievement()
{
return me;
}
@Override
public boolean isAchieved(MOB mob)
{
return getCount(mob) >= num;
}
@Override
public int getCount(MOB mob)
{
return count;
}
@Override
public boolean testBump(MOB mob, int bumpNum, Object... parms)
{
final Ability A;
if(parms.length>0)
{
if(parms[0] instanceof String)
A=CMClass.getAbility((String)parms[0]);
else
if(parms[0] instanceof Ability)
A=(Ability)parms[0];
else
A=null;
if((A!=null)
&&(abilityIDs.contains("*")
||abilityIDs.contains(A.ID())
||(abilityIDs.contains(Ability.ACODE_DESCS[A.classificationCode()&Ability.ALL_ACODES]))
||(abilityIDs.contains(Ability.DOMAIN_DESCS[(A.classificationCode()&Ability.ALL_DOMAINS)>>5]))))
{
count+=bumpNum;
return true;
}
}
return false;
}
@Override
public Tracker copyOf()
{
try
{
return (Tracker)this.clone();
}
catch(Exception e)
{
return this;
}
}
};
} |
8abcddb2-1f7b-44ce-8913-964d0d421899 | public crmondemand.xml.contact.query.QueryType getCustomText13() {
return this.customText13;
} |
7ee0b8a2-3b61-486c-9c7c-fd160d2f7f45 | public java.lang.String getCustomPickList87() {
return this.customPickList87;
} |
376ae521-b43d-4c2d-88d8-9ff2a33a71b6 | public void setCreatedByFirstName(crmondemand.xml.contact.query.QueryType createdByFirstName) {
this.createdByFirstName = createdByFirstName;
} |
70d0024e-d633-42a3-bbd3-7e9be9f75c48 | public java.lang.String getPartnerId() {
return this.partnerId;
} |
20f2fa79-ffa7-4067-b0df-c401cba318e7 | public java.lang.String getCreatedByFullName() {
return this.createdByFullName;
} |
f578b4fc-0b0e-4648-87ce-74b971b80df7 | public crmondemand.xml.customobject3.query.QueryType getCustomText13() {
return this.customText13;
} |
f18aa7db-cca4-48ed-bbbc-aaa3ad69b575 | public void setCustomPickList50(java.lang.String customPickList50) {
this.customPickList50 = customPickList50;
} |
7bb167c9-edb6-4c11-9d98-f2615527888c | public java.lang.String getObjectiveId() {
return this.objectiveId;
} |
61340eda-e82c-4f13-b77a-240d3b09be10 | public crmondemand.xml.opportunity.query.QueryType getAttachFileExt() {
return this.attachFileExt;
} |
596d1d6c-7803-4b17-8784-4ba6e42ba751 | public void setCustomObject5Type(crmondemand.xml.opportunity.query.QueryType customObject5Type) {
this.customObject5Type = customObject5Type;
} |
809a2746-5a5b-4b7d-bf80-0d63baa7cce2 | public void setCustomText50(java.lang.String customText50) {
this.customText50 = customText50;
} |
386b2732-c67c-4c7b-a99e-1278010f6e0a | public void setAccountExternalSystemId(crmondemand.xml.contact.query.QueryType accountExternalSystemId) {
this.accountExternalSystemId = accountExternalSystemId;
} |
cf3fc7c7-e362-4502-af1c-24b725789467 | public void setCustomDate17(crmondemand.xml.customobject6.query.QueryType customDate17) {
this.customDate17 = customDate17;
} |
7996d027-c5b7-4d17-a7a9-4cb9aa01558b | public void setCustomNumber49(crmondemand.xml.customobject6.query.QueryType customNumber49) {
this.customNumber49 = customNumber49;
} |
72e358ae-40b1-4ab8-b975-daa499d4eb42 | public void setCreatedDateExt(java.util.Calendar createdDateExt) {
this.createdDateExt = createdDateExt;
} |
0a7ec110-70da-4e8b-be3b-920b36474f78 | public crmondemand.xml.contact.query.QueryType getModId() {
return this.modId;
} |
3976b919-8e9d-44f7-bd15-7ec010d9d92a | public void setCustomInteger8(crmondemand.xml.opportunity.query.QueryType customInteger8) {
this.customInteger8 = customInteger8;
} |
1598dfc0-b033-4bd2-9b52-b001975a6292 | public void setCustomPickList93(crmondemand.xml.customobject6.query.QueryType customPickList93) {
this.customPickList93 = customPickList93;
} |
6068eaec-cf1d-4674-b646-23e9d59d9074 | public void setCustomPickList47(crmondemand.xml.contact.query.QueryType customPickList47) {
this.customPickList47 = customPickList47;
} |
c16767b2-3565-438a-be8b-4ceb5deff048 | public void setCustomNumber8(crmondemand.xml.contact.query.QueryType customNumber8) {
this.customNumber8 = customNumber8;
} |
de7467b8-cc57-4295-b3f8-e4a6da7b457f | public void setCustomDate33(java.util.Calendar customDate33) {
this.customDate33 = customDate33;
} |
b86c518c-02d2-4da8-af95-8719f5b811d7 | public crmondemand.xml.contact.query.QueryType getCustomPickList45() {
return this.customPickList45;
} |
150e4be1-d974-4ddb-9fc5-2f16eabfe1a0 | public void setCustomCurrency7(java.math.BigDecimal customCurrency7) {
this.customCurrency7 = customCurrency7;
} |
18cb06ad-a354-412a-a185-163f04b53dc3 | public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "ebnf"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:325:1: ebnf : ( ^( SYNPRED block ) -> {%{\"[>SYNPRED<]\"}} | SYN_SEMPRED -> {%{\"[>SYN_SEMPRED<]\"}} | ^( OPTIONAL block ) -> opt(block=$block.st) | ^( CLOSURE block ) -> star(block=$block.st) | ^( POSITIVE_CLOSURE block ) -> {%{\"[>POSITIVE_CLOSURE block<]\"}} | block -> {$block.st});
public final ANTLRv3TreeFilter.ebnf_return ebnf() throws RecognitionException {
ANTLRv3TreeFilter.ebnf_return retval = new ANTLRv3TreeFilter.ebnf_return();
retval.start = input.LT(1);
ANTLRv3TreeFilter.block_return block13 = null;
ANTLRv3TreeFilter.block_return block14 = null;
ANTLRv3TreeFilter.block_return block15 = null;
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:327:2: ( ^( SYNPRED block ) -> {%{\"[>SYNPRED<]\"}} | SYN_SEMPRED -> {%{\"[>SYN_SEMPRED<]\"}} | ^( OPTIONAL block ) -> opt(block=$block.st) | ^( CLOSURE block ) -> star(block=$block.st) | ^( POSITIVE_CLOSURE block ) -> {%{\"[>POSITIVE_CLOSURE block<]\"}} | block -> {$block.st})
int alt38=6;
switch ( input.LA(1) ) {
case SYNPRED:
{
alt38=1;
}
break;
case SYN_SEMPRED:
{
alt38=2;
}
break;
case OPTIONAL:
{
alt38=3;
}
break;
case CLOSURE:
{
alt38=4;
}
break;
case POSITIVE_CLOSURE:
{
alt38=5;
}
break;
case BLOCK:
{
alt38=6;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 38, 0, input);
throw nvae;
}
switch (alt38) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:327:4: ^( SYNPRED block )
{
match(input,SYNPRED,FOLLOW_SYNPRED_in_ebnf1705);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_block_in_ebnf1707);
block();
state._fsp--;
match(input, Token.UP, null);
// TEMPLATE REWRITE
// 329:5: -> {%{\"[>SYNPRED<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>SYNPRED<]");
}
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:331:4: SYN_SEMPRED
{
match(input,SYN_SEMPRED,FOLLOW_SYN_SEMPRED_in_ebnf1723);
// TEMPLATE REWRITE
// 333:5: -> {%{\"[>SYN_SEMPRED<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>SYN_SEMPRED<]");
}
}
break;
case 3 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:335:5: ^( OPTIONAL block )
{
match(input,OPTIONAL,FOLLOW_OPTIONAL_in_ebnf1740);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_block_in_ebnf1742);
block13=block();
state._fsp--;
match(input, Token.UP, null);
// TEMPLATE REWRITE
// 337:5: -> opt(block=$block.st)
{
retval.st = templateLib.getInstanceOf("opt",
new STAttrMap().put("block", (block13!=null?block13.st:null)));
}
}
break;
case 4 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:341:5: ^( CLOSURE block )
{
match(input,CLOSURE,FOLLOW_CLOSURE_in_ebnf1779);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_block_in_ebnf1781);
block14=block();
state._fsp--;
match(input, Token.UP, null);
// TEMPLATE REWRITE
// 343:5: -> star(block=$block.st)
{
retval.st = templateLib.getInstanceOf("star",
new STAttrMap().put("block", (block14!=null?block14.st:null)));
}
}
break;
case 5 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:347:5: ^( POSITIVE_CLOSURE block )
{
match(input,POSITIVE_CLOSURE,FOLLOW_POSITIVE_CLOSURE_in_ebnf1818);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_block_in_ebnf1820);
block();
state._fsp--;
match(input, Token.UP, null);
if (true) throw new UnsupportedSyntaxException("Positive closures not supported (yet).");
// TEMPLATE REWRITE
// 351:5: -> {%{\"[>POSITIVE_CLOSURE block<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>POSITIVE_CLOSURE block<]");
}
}
break;
case 6 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:353:4: block
{
pushFollow(FOLLOW_block_in_ebnf1843);
block15=block();
state._fsp--;
// TEMPLATE REWRITE
// 355:5: -> {$block.st}
{
retval.st = (block15!=null?block15.st:null);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "ebnf"
public static class range_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "range"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:359:1: range : ^( CHAR_RANGE CHAR_LITERAL CHAR_LITERAL ) ;
public final ANTLRv3TreeFilter.range_return range() throws RecognitionException {
ANTLRv3TreeFilter.range_return retval = new ANTLRv3TreeFilter.range_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:360:2: ( ^( CHAR_RANGE CHAR_LITERAL CHAR_LITERAL ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:360:4: ^( CHAR_RANGE CHAR_LITERAL CHAR_LITERAL )
{
match(input,CHAR_RANGE,FOLLOW_CHAR_RANGE_in_range1865);
match(input, Token.DOWN, null);
match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range1867);
match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_range1869);
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "range"
public static class terminal_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "terminal"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:363:1: terminal : ( CHAR_LITERAL -> {%{\"[>CHAR_LITERAL<]\"}} | TOKEN_REF -> token(id=$TOKEN_REFscop=scope) | STRING_LITERAL -> literal(value=val) | ^( TOKEN_REF ARG_ACTION ) -> {%{\"[>TOKEN_REF ARG_ACTION<]\"}} | '.' -> {%{\"[>.<]\"}});
public final ANTLRv3TreeFilter.terminal_return terminal() throws RecognitionException {
ANTLRv3TreeFilter.terminal_return retval = new ANTLRv3TreeFilter.terminal_return();
retval.start = input.LT(1);
CommonTree TOKEN_REF16=null;
CommonTree STRING_LITERAL17=null;
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:364:3: ( CHAR_LITERAL -> {%{\"[>CHAR_LITERAL<]\"}} | TOKEN_REF -> token(id=$TOKEN_REFscop=scope) | STRING_LITERAL -> literal(value=val) | ^( TOKEN_REF ARG_ACTION ) -> {%{\"[>TOKEN_REF ARG_ACTION<]\"}} | '.' -> {%{\"[>.<]\"}})
int alt39=5;
switch ( input.LA(1) ) {
case CHAR_LITERAL:
{
alt39=1;
}
break;
case TOKEN_REF:
{
int LA39_2 = input.LA(2);
if ( (LA39_2==DOWN) ) {
alt39=4;
}
else if ( (LA39_2==UP||(LA39_2>=BLOCK && LA39_2<=SYNPRED)||LA39_2==CHAR_RANGE||LA39_2==EOA||(LA39_2>=SEMPRED && LA39_2<=SYN_SEMPRED)||(LA39_2>=TREE_BEGIN && LA39_2<=BANG)||(LA39_2>=TOKEN_REF && LA39_2<=ACTION)||LA39_2==RULE_REF||LA39_2==71||LA39_2==87||LA39_2==89||LA39_2==92) ) {
alt39=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 39, 2, input);
throw nvae;
}
}
break;
case STRING_LITERAL:
{
alt39=3;
}
break;
case 92:
{
alt39=5;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 39, 0, input);
throw nvae;
}
switch (alt39) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:364:5: CHAR_LITERAL
{
match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_terminal1882);
// TEMPLATE REWRITE
// 366:5: -> {%{\"[>CHAR_LITERAL<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>CHAR_LITERAL<]");
}
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:368:5: TOKEN_REF
{
TOKEN_REF16=(CommonTree)match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_terminal1898);
// TEMPLATE REWRITE
// 370:5: -> token(id=$TOKEN_REFscop=scope)
{
retval.st = templateLib.getInstanceOf("token",
new STAttrMap().put("id", TOKEN_REF16).put("scop", scope));
}
}
break;
case 3 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:375:5: STRING_LITERAL
{
STRING_LITERAL17=(CommonTree)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_terminal1948);
String val = (STRING_LITERAL17!=null?STRING_LITERAL17.getText():null);
val = val.substring(1, val.length() - 1);
// TEMPLATE REWRITE
// 381:5: -> literal(value=val)
{
retval.st = templateLib.getInstanceOf("literal",
new STAttrMap().put("value", val));
}
}
break;
case 4 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:385:5: ^( TOKEN_REF ARG_ACTION )
{
match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_terminal1992);
match(input, Token.DOWN, null);
match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_terminal1994);
match(input, Token.UP, null);
// TEMPLATE REWRITE
// 387:5: -> {%{\"[>TOKEN_REF ARG_ACTION<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>TOKEN_REF ARG_ACTION<]");
}
}
break;
case 5 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:389:5: '.'
{
match(input,92,FOLLOW_92_in_terminal2011);
// TEMPLATE REWRITE
// 391:5: -> {%{\"[>.<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>.<]");
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "terminal"
public static class notTerminal_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "notTerminal"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:395:1: notTerminal : ( CHAR_LITERAL | TOKEN_REF | STRING_LITERAL );
public final ANTLRv3TreeFilter.notTerminal_return notTerminal() throws RecognitionException {
ANTLRv3TreeFilter.notTerminal_return retval = new ANTLRv3TreeFilter.notTerminal_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:396:2: ( CHAR_LITERAL | TOKEN_REF | STRING_LITERAL )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:
{
if ( (input.LA(1)>=TOKEN_REF && input.LA(1)<=CHAR_LITERAL) ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "notTerminal"
public static class ebnfSuffix_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "ebnfSuffix"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:401:1: ebnfSuffix : ( OPTIONAL -> {%{\"[>OPTIONAL<]\"}} | CLOSURE -> {%{\"[>CLOSURE<]\"}} | POSITIVE_CLOSURE -> {%{\"[>POSITIVE_CLOSURE<]\"}});
public final ANTLRv3TreeFilter.ebnfSuffix_return ebnfSuffix() throws RecognitionException {
ANTLRv3TreeFilter.ebnfSuffix_return retval = new ANTLRv3TreeFilter.ebnfSuffix_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:402:2: ( OPTIONAL -> {%{\"[>OPTIONAL<]\"}} | CLOSURE -> {%{\"[>CLOSURE<]\"}} | POSITIVE_CLOSURE -> {%{\"[>POSITIVE_CLOSURE<]\"}})
int alt40=3;
switch ( input.LA(1) ) {
case OPTIONAL:
{
alt40=1;
}
break;
case CLOSURE:
{
alt40=2;
}
break;
case POSITIVE_CLOSURE:
{
alt40=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 40, 0, input);
throw nvae;
}
switch (alt40) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:402:4: OPTIONAL
{
match(input,OPTIONAL,FOLLOW_OPTIONAL_in_ebnfSuffix2054);
// TEMPLATE REWRITE
// 404:5: -> {%{\"[>OPTIONAL<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>OPTIONAL<]");
}
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:406:5: CLOSURE
{
match(input,CLOSURE,FOLLOW_CLOSURE_in_ebnfSuffix2070);
// TEMPLATE REWRITE
// 408:5: -> {%{\"[>CLOSURE<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>CLOSURE<]");
}
}
break;
case 3 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:410:5: POSITIVE_CLOSURE
{
match(input,POSITIVE_CLOSURE,FOLLOW_POSITIVE_CLOSURE_in_ebnfSuffix2086);
// TEMPLATE REWRITE
// 412:5: -> {%{\"[>POSITIVE_CLOSURE<]\"}}
{
retval.st = new StringTemplate(templateLib,"[>POSITIVE_CLOSURE<]");
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "ebnfSuffix"
public static class rewrite_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:417:1: rewrite : ( ( ^( '->' SEMPRED rewrite_alternative ) )* ^( '->' rewrite_alternative ) | );
public final ANTLRv3TreeFilter.rewrite_return rewrite() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_return retval = new ANTLRv3TreeFilter.rewrite_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:418:2: ( ( ^( '->' SEMPRED rewrite_alternative ) )* ^( '->' rewrite_alternative ) | )
int alt42=2;
int LA42_0 = input.LA(1);
if ( (LA42_0==REWRITE) ) {
alt42=1;
}
else if ( (LA42_0==ALT||LA42_0==EOB) ) {
alt42=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 42, 0, input);
throw nvae;
}
switch (alt42) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:418:4: ( ^( '->' SEMPRED rewrite_alternative ) )* ^( '->' rewrite_alternative )
{
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:418:4: ( ^( '->' SEMPRED rewrite_alternative ) )*
loop41:
do {
int alt41=2;
int LA41_0 = input.LA(1);
if ( (LA41_0==REWRITE) ) {
int LA41_1 = input.LA(2);
if ( (LA41_1==DOWN) ) {
int LA41_2 = input.LA(3);
if ( (LA41_2==SEMPRED) ) {
alt41=1;
}
}
}
switch (alt41) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:418:5: ^( '->' SEMPRED rewrite_alternative )
{
match(input,REWRITE,FOLLOW_REWRITE_in_rewrite2111);
match(input, Token.DOWN, null);
match(input,SEMPRED,FOLLOW_SEMPRED_in_rewrite2113);
pushFollow(FOLLOW_rewrite_alternative_in_rewrite2115);
rewrite_alternative();
state._fsp--;
match(input, Token.UP, null);
}
break;
default :
break loop41;
}
} while (true);
match(input,REWRITE,FOLLOW_REWRITE_in_rewrite2121);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_rewrite_alternative_in_rewrite2123);
rewrite_alternative();
state._fsp--;
match(input, Token.UP, null);
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:420:2:
{
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite"
public static class rewrite_alternative_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_alternative"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:422:1: rewrite_alternative : ( rewrite_template | rewrite_tree_alternative | ^( ALT EPSILON EOA ) );
public final ANTLRv3TreeFilter.rewrite_alternative_return rewrite_alternative() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_alternative_return retval = new ANTLRv3TreeFilter.rewrite_alternative_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:423:2: ( rewrite_template | rewrite_tree_alternative | ^( ALT EPSILON EOA ) )
int alt43=3;
int LA43_0 = input.LA(1);
if ( (LA43_0==TEMPLATE||LA43_0==ACTION) ) {
alt43=1;
}
else if ( (LA43_0==ALT) ) {
int LA43_2 = input.LA(2);
if ( (LA43_2==DOWN) ) {
int LA43_3 = input.LA(3);
if ( (LA43_3==EPSILON) ) {
alt43=3;
}
else if ( ((LA43_3>=BLOCK && LA43_3<=POSITIVE_CLOSURE)||LA43_3==LABEL||LA43_3==TREE_BEGIN||(LA43_3>=TOKEN_REF && LA43_3<=ACTION)||LA43_3==RULE_REF) ) {
alt43=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 43, 3, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 43, 2, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 43, 0, input);
throw nvae;
}
switch (alt43) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:423:4: rewrite_template
{
pushFollow(FOLLOW_rewrite_template_in_rewrite_alternative2138);
rewrite_template();
state._fsp--;
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:424:4: rewrite_tree_alternative
{
pushFollow(FOLLOW_rewrite_tree_alternative_in_rewrite_alternative2143);
rewrite_tree_alternative();
state._fsp--;
}
break;
case 3 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:425:9: ^( ALT EPSILON EOA )
{
match(input,ALT,FOLLOW_ALT_in_rewrite_alternative2154);
match(input, Token.DOWN, null);
match(input,EPSILON,FOLLOW_EPSILON_in_rewrite_alternative2156);
match(input,EOA,FOLLOW_EOA_in_rewrite_alternative2158);
match(input, Token.UP, null);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_alternative"
public static class rewrite_tree_block_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_tree_block"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:428:1: rewrite_tree_block : ^( BLOCK rewrite_tree_alternative EOB ) ;
public final ANTLRv3TreeFilter.rewrite_tree_block_return rewrite_tree_block() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_tree_block_return retval = new ANTLRv3TreeFilter.rewrite_tree_block_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:429:5: ( ^( BLOCK rewrite_tree_alternative EOB ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:429:9: ^( BLOCK rewrite_tree_alternative EOB )
{
match(input,BLOCK,FOLLOW_BLOCK_in_rewrite_tree_block2177);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_rewrite_tree_alternative_in_rewrite_tree_block2179);
rewrite_tree_alternative();
state._fsp--;
match(input,EOB,FOLLOW_EOB_in_rewrite_tree_block2181);
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_tree_block"
public static class rewrite_tree_alternative_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_tree_alternative"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:432:1: rewrite_tree_alternative : ^( ALT ( rewrite_tree_element )+ EOA ) ;
public final ANTLRv3TreeFilter.rewrite_tree_alternative_return rewrite_tree_alternative() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_tree_alternative_return retval = new ANTLRv3TreeFilter.rewrite_tree_alternative_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:433:5: ( ^( ALT ( rewrite_tree_element )+ EOA ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:433:7: ^( ALT ( rewrite_tree_element )+ EOA )
{
match(input,ALT,FOLLOW_ALT_in_rewrite_tree_alternative2200);
match(input, Token.DOWN, null);
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:433:13: ( rewrite_tree_element )+
int cnt44=0;
loop44:
do {
int alt44=2;
int LA44_0 = input.LA(1);
if ( ((LA44_0>=BLOCK && LA44_0<=POSITIVE_CLOSURE)||LA44_0==LABEL||LA44_0==TREE_BEGIN||(LA44_0>=TOKEN_REF && LA44_0<=ACTION)||LA44_0==RULE_REF) ) {
alt44=1;
}
switch (alt44) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:433:13: rewrite_tree_element
{
pushFollow(FOLLOW_rewrite_tree_element_in_rewrite_tree_alternative2202);
rewrite_tree_element();
state._fsp--;
}
break;
default :
if ( cnt44 >= 1 ) break loop44;
EarlyExitException eee =
new EarlyExitException(44, input);
throw eee;
}
cnt44++;
} while (true);
match(input,EOA,FOLLOW_EOA_in_rewrite_tree_alternative2205);
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_tree_alternative"
public static class rewrite_tree_element_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_tree_element"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:436:1: rewrite_tree_element : ( rewrite_tree_atom | rewrite_tree | rewrite_tree_block | rewrite_tree_ebnf );
public final ANTLRv3TreeFilter.rewrite_tree_element_return rewrite_tree_element() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_tree_element_return retval = new ANTLRv3TreeFilter.rewrite_tree_element_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:437:2: ( rewrite_tree_atom | rewrite_tree | rewrite_tree_block | rewrite_tree_ebnf )
int alt45=4;
switch ( input.LA(1) ) {
case LABEL:
case TOKEN_REF:
case STRING_LITERAL:
case CHAR_LITERAL:
case ACTION:
case RULE_REF:
{
alt45=1;
}
break;
case TREE_BEGIN:
{
alt45=2;
}
break;
case BLOCK:
{
alt45=3;
}
break;
case OPTIONAL:
case CLOSURE:
case POSITIVE_CLOSURE:
{
alt45=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 45, 0, input);
throw nvae;
}
switch (alt45) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:437:4: rewrite_tree_atom
{
pushFollow(FOLLOW_rewrite_tree_atom_in_rewrite_tree_element2220);
rewrite_tree_atom();
state._fsp--;
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:438:4: rewrite_tree
{
pushFollow(FOLLOW_rewrite_tree_in_rewrite_tree_element2225);
rewrite_tree();
state._fsp--;
}
break;
case 3 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:439:6: rewrite_tree_block
{
pushFollow(FOLLOW_rewrite_tree_block_in_rewrite_tree_element2232);
rewrite_tree_block();
state._fsp--;
}
break;
case 4 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:440:6: rewrite_tree_ebnf
{
pushFollow(FOLLOW_rewrite_tree_ebnf_in_rewrite_tree_element2239);
rewrite_tree_ebnf();
state._fsp--;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_tree_element"
public static class rewrite_tree_atom_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_tree_atom"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:443:1: rewrite_tree_atom : ( CHAR_LITERAL | TOKEN_REF | ^( TOKEN_REF ARG_ACTION ) | RULE_REF | STRING_LITERAL | LABEL | ACTION );
public final ANTLRv3TreeFilter.rewrite_tree_atom_return rewrite_tree_atom() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_tree_atom_return retval = new ANTLRv3TreeFilter.rewrite_tree_atom_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:444:5: ( CHAR_LITERAL | TOKEN_REF | ^( TOKEN_REF ARG_ACTION ) | RULE_REF | STRING_LITERAL | LABEL | ACTION )
int alt46=7;
switch ( input.LA(1) ) {
case CHAR_LITERAL:
{
alt46=1;
}
break;
case TOKEN_REF:
{
int LA46_2 = input.LA(2);
if ( (LA46_2==DOWN) ) {
alt46=3;
}
else if ( (LA46_2==UP||(LA46_2>=BLOCK && LA46_2<=POSITIVE_CLOSURE)||LA46_2==EOA||LA46_2==LABEL||LA46_2==TREE_BEGIN||(LA46_2>=TOKEN_REF && LA46_2<=ACTION)||LA46_2==RULE_REF) ) {
alt46=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 46, 2, input);
throw nvae;
}
}
break;
case RULE_REF:
{
alt46=4;
}
break;
case STRING_LITERAL:
{
alt46=5;
}
break;
case LABEL:
{
alt46=6;
}
break;
case ACTION:
{
alt46=7;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 46, 0, input);
throw nvae;
}
switch (alt46) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:444:9: CHAR_LITERAL
{
match(input,CHAR_LITERAL,FOLLOW_CHAR_LITERAL_in_rewrite_tree_atom2255);
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:445:6: TOKEN_REF
{
match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_rewrite_tree_atom2262);
}
break;
case 3 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:446:6: ^( TOKEN_REF ARG_ACTION )
{
match(input,TOKEN_REF,FOLLOW_TOKEN_REF_in_rewrite_tree_atom2270);
match(input, Token.DOWN, null);
match(input,ARG_ACTION,FOLLOW_ARG_ACTION_in_rewrite_tree_atom2272);
match(input, Token.UP, null);
}
break;
case 4 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:447:9: RULE_REF
{
match(input,RULE_REF,FOLLOW_RULE_REF_in_rewrite_tree_atom2284);
}
break;
case 5 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:448:6: STRING_LITERAL
{
match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_rewrite_tree_atom2291);
}
break;
case 6 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:449:6: LABEL
{
match(input,LABEL,FOLLOW_LABEL_in_rewrite_tree_atom2298);
}
break;
case 7 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:450:4: ACTION
{
match(input,ACTION,FOLLOW_ACTION_in_rewrite_tree_atom2303);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_tree_atom"
public static class rewrite_tree_ebnf_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_tree_ebnf"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:453:1: rewrite_tree_ebnf : ^( ebnfSuffix rewrite_tree_block ) ;
public final ANTLRv3TreeFilter.rewrite_tree_ebnf_return rewrite_tree_ebnf() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_tree_ebnf_return retval = new ANTLRv3TreeFilter.rewrite_tree_ebnf_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:454:2: ( ^( ebnfSuffix rewrite_tree_block ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:454:4: ^( ebnfSuffix rewrite_tree_block )
{
pushFollow(FOLLOW_ebnfSuffix_in_rewrite_tree_ebnf2315);
ebnfSuffix();
state._fsp--;
match(input, Token.DOWN, null);
pushFollow(FOLLOW_rewrite_tree_block_in_rewrite_tree_ebnf2317);
rewrite_tree_block();
state._fsp--;
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_tree_ebnf"
public static class rewrite_tree_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_tree"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:457:1: rewrite_tree : ^( TREE_BEGIN rewrite_tree_atom ( rewrite_tree_element )* ) ;
public final ANTLRv3TreeFilter.rewrite_tree_return rewrite_tree() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_tree_return retval = new ANTLRv3TreeFilter.rewrite_tree_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:458:2: ( ^( TREE_BEGIN rewrite_tree_atom ( rewrite_tree_element )* ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:458:4: ^( TREE_BEGIN rewrite_tree_atom ( rewrite_tree_element )* )
{
match(input,TREE_BEGIN,FOLLOW_TREE_BEGIN_in_rewrite_tree2331);
match(input, Token.DOWN, null);
pushFollow(FOLLOW_rewrite_tree_atom_in_rewrite_tree2333);
rewrite_tree_atom();
state._fsp--;
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:458:35: ( rewrite_tree_element )*
loop47:
do {
int alt47=2;
int LA47_0 = input.LA(1);
if ( ((LA47_0>=BLOCK && LA47_0<=POSITIVE_CLOSURE)||LA47_0==LABEL||LA47_0==TREE_BEGIN||(LA47_0>=TOKEN_REF && LA47_0<=ACTION)||LA47_0==RULE_REF) ) {
alt47=1;
}
switch (alt47) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:458:35: rewrite_tree_element
{
pushFollow(FOLLOW_rewrite_tree_element_in_rewrite_tree2335);
rewrite_tree_element();
state._fsp--;
}
break;
default :
break loop47;
}
} while (true);
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_tree"
public static class rewrite_template_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_template"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:461:1: rewrite_template : ( ^( TEMPLATE ID rewrite_template_args ( DOUBLE_QUOTE_STRING_LITERAL | DOUBLE_ANGLE_STRING_LITERAL ) ) | rewrite_template_ref | rewrite_indirect_template_head | ACTION );
public final ANTLRv3TreeFilter.rewrite_template_return rewrite_template() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_template_return retval = new ANTLRv3TreeFilter.rewrite_template_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:462:2: ( ^( TEMPLATE ID rewrite_template_args ( DOUBLE_QUOTE_STRING_LITERAL | DOUBLE_ANGLE_STRING_LITERAL ) ) | rewrite_template_ref | rewrite_indirect_template_head | ACTION )
int alt48=4;
alt48 = dfa48.predict(input);
switch (alt48) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:462:6: ^( TEMPLATE ID rewrite_template_args ( DOUBLE_QUOTE_STRING_LITERAL | DOUBLE_ANGLE_STRING_LITERAL ) )
{
match(input,TEMPLATE,FOLLOW_TEMPLATE_in_rewrite_template2353);
match(input, Token.DOWN, null);
match(input,ID,FOLLOW_ID_in_rewrite_template2355);
pushFollow(FOLLOW_rewrite_template_args_in_rewrite_template2357);
rewrite_template_args();
state._fsp--;
if ( (input.LA(1)>=DOUBLE_QUOTE_STRING_LITERAL && input.LA(1)<=DOUBLE_ANGLE_STRING_LITERAL) ) {
input.consume();
state.errorRecovery=false;
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
throw mse;
}
match(input, Token.UP, null);
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:465:4: rewrite_template_ref
{
pushFollow(FOLLOW_rewrite_template_ref_in_rewrite_template2380);
rewrite_template_ref();
state._fsp--;
}
break;
case 3 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:466:4: rewrite_indirect_template_head
{
pushFollow(FOLLOW_rewrite_indirect_template_head_in_rewrite_template2385);
rewrite_indirect_template_head();
state._fsp--;
}
break;
case 4 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:467:4: ACTION
{
match(input,ACTION,FOLLOW_ACTION_in_rewrite_template2390);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_template"
public static class rewrite_template_ref_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_template_ref"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:470:1: rewrite_template_ref : ^( TEMPLATE ID rewrite_template_args ) ;
public final ANTLRv3TreeFilter.rewrite_template_ref_return rewrite_template_ref() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_template_ref_return retval = new ANTLRv3TreeFilter.rewrite_template_ref_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:472:2: ( ^( TEMPLATE ID rewrite_template_args ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:472:4: ^( TEMPLATE ID rewrite_template_args )
{
match(input,TEMPLATE,FOLLOW_TEMPLATE_in_rewrite_template_ref2404);
match(input, Token.DOWN, null);
match(input,ID,FOLLOW_ID_in_rewrite_template_ref2406);
pushFollow(FOLLOW_rewrite_template_args_in_rewrite_template_ref2408);
rewrite_template_args();
state._fsp--;
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_template_ref"
public static class rewrite_indirect_template_head_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_indirect_template_head"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:475:1: rewrite_indirect_template_head : ^( TEMPLATE ACTION rewrite_template_args ) ;
public final ANTLRv3TreeFilter.rewrite_indirect_template_head_return rewrite_indirect_template_head() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_indirect_template_head_return retval = new ANTLRv3TreeFilter.rewrite_indirect_template_head_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:477:2: ( ^( TEMPLATE ACTION rewrite_template_args ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:477:4: ^( TEMPLATE ACTION rewrite_template_args )
{
match(input,TEMPLATE,FOLLOW_TEMPLATE_in_rewrite_indirect_template_head2423);
match(input, Token.DOWN, null);
match(input,ACTION,FOLLOW_ACTION_in_rewrite_indirect_template_head2425);
pushFollow(FOLLOW_rewrite_template_args_in_rewrite_indirect_template_head2427);
rewrite_template_args();
state._fsp--;
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_indirect_template_head"
public static class rewrite_template_args_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_template_args"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:480:1: rewrite_template_args : ( ^( ARGLIST ( rewrite_template_arg )+ ) | ARGLIST );
public final ANTLRv3TreeFilter.rewrite_template_args_return rewrite_template_args() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_template_args_return retval = new ANTLRv3TreeFilter.rewrite_template_args_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:481:2: ( ^( ARGLIST ( rewrite_template_arg )+ ) | ARGLIST )
int alt50=2;
int LA50_0 = input.LA(1);
if ( (LA50_0==ARGLIST) ) {
int LA50_1 = input.LA(2);
if ( (LA50_1==DOWN) ) {
alt50=1;
}
else if ( (LA50_1==UP||(LA50_1>=DOUBLE_QUOTE_STRING_LITERAL && LA50_1<=DOUBLE_ANGLE_STRING_LITERAL)) ) {
alt50=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 50, 1, input);
throw nvae;
}
}
else {
NoViableAltException nvae =
new NoViableAltException("", 50, 0, input);
throw nvae;
}
switch (alt50) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:481:4: ^( ARGLIST ( rewrite_template_arg )+ )
{
match(input,ARGLIST,FOLLOW_ARGLIST_in_rewrite_template_args2440);
match(input, Token.DOWN, null);
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:481:14: ( rewrite_template_arg )+
int cnt49=0;
loop49:
do {
int alt49=2;
int LA49_0 = input.LA(1);
if ( (LA49_0==ARG) ) {
alt49=1;
}
switch (alt49) {
case 1 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:481:14: rewrite_template_arg
{
pushFollow(FOLLOW_rewrite_template_arg_in_rewrite_template_args2442);
rewrite_template_arg();
state._fsp--;
}
break;
default :
if ( cnt49 >= 1 ) break loop49;
EarlyExitException eee =
new EarlyExitException(49, input);
throw eee;
}
cnt49++;
} while (true);
match(input, Token.UP, null);
}
break;
case 2 :
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:482:4: ARGLIST
{
match(input,ARGLIST,FOLLOW_ARGLIST_in_rewrite_template_args2449);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_template_args"
public static class rewrite_template_arg_return extends TreeRuleReturnScope {
public StringTemplate st;
public Object getTemplate() { return st; }
public String toString() { return st==null?null:st.toString(); }
};
// $ANTLR start "rewrite_template_arg"
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:485:1: rewrite_template_arg : ^( ARG ID ACTION ) ;
public final ANTLRv3TreeFilter.rewrite_template_arg_return rewrite_template_arg() throws RecognitionException {
ANTLRv3TreeFilter.rewrite_template_arg_return retval = new ANTLRv3TreeFilter.rewrite_template_arg_return();
retval.start = input.LT(1);
try {
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:486:2: ( ^( ARG ID ACTION ) )
// back-end/koopa/trees/antlr/filter/generator/ANTLRv3TreeFilter.g:486:6: ^( ARG ID ACTION )
{
match(input,ARG,FOLLOW_ARG_in_rewrite_template_arg2463);
match(input, Token.DOWN, null);
match(input,ID,FOLLOW_ID_in_rewrite_template_arg2465);
match(input,ACTION,FOLLOW_ACTION_in_rewrite_template_arg2467);
match(input, Token.UP, null);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end "rewrite_template_arg"
// Delegated rules
protected DFA33 dfa33 = new DFA33(this);
protected DFA48 dfa48 = new DFA48(this);
static final String DFA33_eotS =
"\15\uffff";
static final String DFA33_eofS =
"\15\uffff";
static final String DFA33_minS =
"\1\10\2\2\6\uffff\1\24\1\10\2\uffff";
static final String DFA33_maxS =
"\1\134\2\2\6\uffff\1\24\1\134\2\uffff";
static final String DFA33_acceptS =
"\3\uffff\1\3\1\4\1\5\1\6\1\7\1\10\2\uffff\1\2\1\1";
static final String DFA33_specialS =
"\15\uffff}>";
static final String[] DFA33_transitionS = {
"\5\4\1\uffff\1\3\21\uffff\1\6\1\7\1\4\2\uffff\1\10\2\3\2\uffff"+
"\3\3\1\5\3\uffff\1\3\25\uffff\1\1\17\uffff\1\2\1\uffff\1\3\2"+
"\uffff\1\3",
"\1\11",
"\1\11",
"",
"",
"",
"",
"",
"",
"\1\12",
"\1\14\5\uffff\1\13\27\uffff\2\13\2\uffff\3\13\4\uffff\1\13"+
"\47\uffff\1\13\2\uffff\1\13",
"",
""
};
static final short[] DFA33_eot = DFA.unpackEncodedString(DFA33_eotS);
static final short[] DFA33_eof = DFA.unpackEncodedString(DFA33_eofS);
static final char[] DFA33_min = DFA.unpackEncodedStringToUnsignedChars(DFA33_minS);
static final char[] DFA33_max = DFA.unpackEncodedStringToUnsignedChars(DFA33_maxS);
static final short[] DFA33_accept = DFA.unpackEncodedString(DFA33_acceptS);
static final short[] DFA33_special = DFA.unpackEncodedString(DFA33_specialS);
static final short[][] DFA33_transition;
static {
int numStates = DFA33_transitionS.length;
DFA33_transition = new short[numStates][];
for (int i=0; i<numStates; i++) {
DFA33_transition[i] = DFA.unpackEncodedString(DFA33_transitionS[i]);
}
}
class DFA33 extends DFA {
public DFA33(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 33;
this.eot = DFA33_eot;
this.eof = DFA33_eof;
this.min = DFA33_min;
this.max = DFA33_max;
this.accept = DFA33_accept;
this.special = DFA33_special;
this.transition = DFA33_transition;
}
public String getDescription() {
return "226:1: elementNoOptionSpec : ( ^( ( '=' | '+=' ) ID block ) -> {$block.st} | ^( ( '=' | '+=' ) ID atom ) -> {$atom.st} | atom -> {$atom.st} | ebnf -> {$ebnf.st} | ACTION -> {%{\"epsilon\"}} | SEMPRED -> {%{\"[>SEMPRED<]\"}} | GATED_SEMPRED -> {%{\"[>GATED_SEMPRED<]\"}} | treeSpec -> {$treeSpec.st});";
}
}
static final String DFA48_eotS =
"\20\uffff";
static final String DFA48_eofS =
"\20\uffff";
static final String DFA48_minS =
"\1\36\1\2\1\uffff\1\24\1\26\1\uffff\1\2\1\25\2\uffff\1\2\1\24\1"+
"\55\3\3";
static final String DFA48_maxS =
"\1\55\1\2\1\uffff\1\55\1\26\1\uffff\1\63\1\25\2\uffff\1\2\1\24"+
"\1\55\1\3\1\25\1\63";
static final String DFA48_acceptS =
"\2\uffff\1\4\2\uffff\1\3\2\uffff\1\1\1\2\6\uffff";
static final String DFA48_specialS =
"\20\uffff}>";
static final String[] DFA48_transitionS = {
"\1\1\16\uffff\1\2",
"\1\3",
"",
"\1\4\30\uffff\1\5",
"\1\6",
"",
"\1\7\1\11\56\uffff\2\10",
"\1\12",
"",
"",
"\1\13",
"\1\14",
"\1\15",
"\1\16",
"\1\17\21\uffff\1\12",
"\1\11\56\uffff\2\10"
};
static final short[] DFA48_eot = DFA.unpackEncodedString(DFA48_eotS);
static final short[] DFA48_eof = DFA.unpackEncodedString(DFA48_eofS);
static final char[] DFA48_min = DFA.unpackEncodedStringToUnsignedChars(DFA48_minS);
static final char[] DFA48_max = DFA.unpackEncodedStringToUnsignedChars(DFA48_maxS);
static final short[] DFA48_accept = DFA.unpackEncodedString(DFA48_acceptS);
static final short[] DFA48_special = DFA.unpackEncodedString(DFA48_specialS);
static final short[][] DFA48_transition;
static {
int numStates = DFA48_transitionS.length;
DFA48_transition = new short[numStates][];
for (int i=0; i<numStates; i++) {
DFA48_transition[i] = DFA.unpackEncodedString(DFA48_transitionS[i]);
}
}
class DFA48 extends DFA {
public DFA48(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 48;
this.eot = DFA48_eot;
this.eof = DFA48_eof;
this.min = DFA48_min;
this.max = DFA48_max;
this.accept = DFA48_accept;
this.special = DFA48_special;
this.transition = DFA48_transition;
}
public String getDescription() {
return "461:1: rewrite_template : ( ^( TEMPLATE ID rewrite_template_args ( DOUBLE_QUOTE_STRING_LITERAL | DOUBLE_ANGLE_STRING_LITERAL ) ) | rewrite_template_ref | rewrite_indirect_template_head | ACTION );";
}
}
public static final BitSet FOLLOW_grammarType_in_grammarDef65 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_grammarDef67 = new BitSet(new long[]{0x0000420080000090L,0x0000000000000100L});
public static final BitSet FOLLOW_DOC_COMMENT_in_grammarDef101 = new BitSet(new long[]{0x0000420080000090L,0x0000000000000100L});
public static final BitSet FOLLOW_optionsSpec_in_grammarDef104 = new BitSet(new long[]{0x0000420080000090L,0x0000000000000100L});
public static final BitSet FOLLOW_tokensSpec_in_grammarDef107 = new BitSet(new long[]{0x0000420080000090L,0x0000000000000100L});
public static final BitSet FOLLOW_attrScope_in_grammarDef110 = new BitSet(new long[]{0x0000420080000090L,0x0000000000000100L});
public static final BitSet FOLLOW_action_in_grammarDef113 = new BitSet(new long[]{0x0000420080000090L,0x0000000000000100L});
public static final BitSet FOLLOW_rule_in_grammarDef119 = new BitSet(new long[]{0x0000420080000098L,0x0000000000000100L});
public static final BitSet FOLLOW_LEXER_GRAMMAR_in_grammarType195 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_PARSER_GRAMMAR_in_grammarType207 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_TREE_GRAMMAR_in_grammarType219 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_COMBINED_GRAMMAR_in_grammarType225 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_TOKENS_in_tokensSpec244 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_tokenSpec_in_tokensSpec246 = new BitSet(new long[]{0x0000040000000008L,0x0000000000000080L});
public static final BitSet FOLLOW_71_in_tokenSpec260 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_TOKEN_REF_in_tokenSpec262 = new BitSet(new long[]{0x0000080000000000L});
public static final BitSet FOLLOW_STRING_LITERAL_in_tokenSpec264 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_71_in_tokenSpec271 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_TOKEN_REF_in_tokenSpec273 = new BitSet(new long[]{0x0000100000000000L});
public static final BitSet FOLLOW_CHAR_LITERAL_in_tokenSpec275 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_TOKEN_REF_in_tokenSpec281 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_SCOPE_in_attrScope293 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_attrScope295 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_ACTION_in_attrScope297 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_72_in_action310 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_action312 = new BitSet(new long[]{0x0000000000100000L});
public static final BitSet FOLLOW_ID_in_action314 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_ACTION_in_action316 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_72_in_action323 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_action325 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_ACTION_in_action327 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_OPTIONS_in_optionsSpec340 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_option_in_optionsSpec342 = new BitSet(new long[]{0x0000000000000008L,0x0000000000000080L});
public static final BitSet FOLLOW_71_in_option361 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_option363 = new BitSet(new long[]{0x0000980000100000L});
public static final BitSet FOLLOW_optionValue_in_option365 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_set_in_optionValue0 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_RULE_in_rule431 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_rule433 = new BitSet(new long[]{0x0000401080A00100L,0x0000000000003900L});
public static final BitSet FOLLOW_modifier_in_rule450 = new BitSet(new long[]{0x0000401080A00100L,0x0000000000003900L});
public static final BitSet FOLLOW_ARG_in_rule455 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ARG_ACTION_in_rule457 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_RET_in_rule464 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ARG_ACTION_in_rule466 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_optionsSpec_in_rule477 = new BitSet(new long[]{0x0000401080A00100L,0x0000000000003900L});
public static final BitSet FOLLOW_ruleScopeSpec_in_rule480 = new BitSet(new long[]{0x0000401080A00100L,0x0000000000003900L});
public static final BitSet FOLLOW_ruleAction_in_rule483 = new BitSet(new long[]{0x0000401080A00100L,0x0000000000003900L});
public static final BitSet FOLLOW_altList_in_rule501 = new BitSet(new long[]{0x0000000000020000L,0x0000000000600000L});
public static final BitSet FOLLOW_exceptionGroup_in_rule518 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_EOR_in_rule528 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_set_in_modifier0 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_72_in_ruleAction610 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_ruleAction612 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_ACTION_in_ruleAction614 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_80_in_throwsSpec627 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_throwsSpec629 = new BitSet(new long[]{0x0000000000100008L});
public static final BitSet FOLLOW_SCOPE_in_ruleScopeSpec643 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ACTION_in_ruleScopeSpec645 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_SCOPE_in_ruleScopeSpec652 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ACTION_in_ruleScopeSpec654 = new BitSet(new long[]{0x0000000000100000L});
public static final BitSet FOLLOW_ID_in_ruleScopeSpec656 = new BitSet(new long[]{0x0000000000100008L});
public static final BitSet FOLLOW_SCOPE_in_ruleScopeSpec664 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_ruleScopeSpec666 = new BitSet(new long[]{0x0000000000100008L});
public static final BitSet FOLLOW_BLOCK_in_block691 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_optionsSpec_in_block693 = new BitSet(new long[]{0x0000000000010000L});
public static final BitSet FOLLOW_alternative_in_block707 = new BitSet(new long[]{0x0000010000050000L});
public static final BitSet FOLLOW_rewrite_in_block709 = new BitSet(new long[]{0x0000000000050000L});
public static final BitSet FOLLOW_EOB_in_block739 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_BLOCK_in_altList812 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_alternative_in_altList825 = new BitSet(new long[]{0x0000010000050000L});
public static final BitSet FOLLOW_rewrite_in_altList827 = new BitSet(new long[]{0x0000000000050000L});
public static final BitSet FOLLOW_EOB_in_altList857 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_ALT_in_alternative930 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_element_in_alternative943 = new BitSet(new long[]{0x00023CE700085F00L,0x0000000012800080L});
public static final BitSet FOLLOW_EOA_in_alternative973 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_ALT_in_alternative1027 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_EPSILON_in_alternative1029 = new BitSet(new long[]{0x0000000000080000L});
public static final BitSet FOLLOW_EOA_in_alternative1038 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_exceptionHandler_in_exceptionGroup1072 = new BitSet(new long[]{0x0000000000000002L,0x0000000000600000L});
public static final BitSet FOLLOW_finallyClause_in_exceptionGroup1075 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_finallyClause_in_exceptionGroup1081 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_85_in_exceptionHandler1102 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ARG_ACTION_in_exceptionHandler1104 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_ACTION_in_exceptionHandler1106 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_86_in_finallyClause1128 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ACTION_in_finallyClause1130 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_elementNoOptionSpec_in_element1145 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_71_in_elementNoOptionSpec1171 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_87_in_elementNoOptionSpec1173 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_elementNoOptionSpec1176 = new BitSet(new long[]{0x0000000400001F00L});
public static final BitSet FOLLOW_block_in_elementNoOptionSpec1178 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_71_in_elementNoOptionSpec1196 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_87_in_elementNoOptionSpec1198 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_elementNoOptionSpec1201 = new BitSet(new long[]{0x00021CC000004000L,0x0000000012000000L});
public static final BitSet FOLLOW_atom_in_elementNoOptionSpec1203 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_atom_in_elementNoOptionSpec1219 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ebnf_in_elementNoOptionSpec1234 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ACTION_in_elementNoOptionSpec1251 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_SEMPRED_in_elementNoOptionSpec1268 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_GATED_SEMPRED_in_elementNoOptionSpec1283 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_treeSpec_in_elementNoOptionSpec1300 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ROOT_in_atom1323 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_BANG_in_atom1325 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_atom_in_atom1328 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_range_in_atom1344 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_notSet_in_atom1359 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_RULE_REF_in_atom1376 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ARG_ACTION_in_atom1378 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_RULE_REF_in_atom1415 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_terminal_in_atom1451 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_89_in_notSet1473 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_notTerminal_in_notSet1475 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_89_in_notSet1482 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_block_in_notSet1484 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_TREE_BEGIN_in_treeSpec1507 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_TOKEN_REF_in_treeSpec1534 = new BitSet(new long[]{0x00023CE700085F08L,0x0000000012800080L});
public static final BitSet FOLLOW_element_in_treeSpec1555 = new BitSet(new long[]{0x00023CE700085F08L,0x0000000012800080L});
public static final BitSet FOLLOW_SYNPRED_in_ebnf1705 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_block_in_ebnf1707 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_SYN_SEMPRED_in_ebnf1723 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_OPTIONAL_in_ebnf1740 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_block_in_ebnf1742 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_CLOSURE_in_ebnf1779 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_block_in_ebnf1781 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_POSITIVE_CLOSURE_in_ebnf1818 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_block_in_ebnf1820 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_block_in_ebnf1843 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_CHAR_RANGE_in_range1865 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_CHAR_LITERAL_in_range1867 = new BitSet(new long[]{0x0000100000000000L});
public static final BitSet FOLLOW_CHAR_LITERAL_in_range1869 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_CHAR_LITERAL_in_terminal1882 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_TOKEN_REF_in_terminal1898 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_terminal1948 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_TOKEN_REF_in_terminal1992 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ARG_ACTION_in_terminal1994 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_92_in_terminal2011 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_notTerminal0 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_OPTIONAL_in_ebnfSuffix2054 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_CLOSURE_in_ebnfSuffix2070 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_POSITIVE_CLOSURE_in_ebnfSuffix2086 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_REWRITE_in_rewrite2111 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_SEMPRED_in_rewrite2113 = new BitSet(new long[]{0x0000200040010000L});
public static final BitSet FOLLOW_rewrite_alternative_in_rewrite2115 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_REWRITE_in_rewrite2121 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_rewrite_alternative_in_rewrite2123 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_rewrite_template_in_rewrite_alternative2138 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rewrite_tree_alternative_in_rewrite_alternative2143 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ALT_in_rewrite_alternative2154 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_EPSILON_in_rewrite_alternative2156 = new BitSet(new long[]{0x0000000000080000L});
public static final BitSet FOLLOW_EOA_in_rewrite_alternative2158 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_BLOCK_in_rewrite_tree_block2177 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_rewrite_tree_alternative_in_rewrite_tree_block2179 = new BitSet(new long[]{0x0000000000040000L});
public static final BitSet FOLLOW_EOB_in_rewrite_tree_block2181 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_ALT_in_rewrite_tree_alternative2200 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_rewrite_tree_element_in_rewrite_tree_alternative2202 = new BitSet(new long[]{0x00023C2020080F00L});
public static final BitSet FOLLOW_EOA_in_rewrite_tree_alternative2205 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_rewrite_tree_atom_in_rewrite_tree_element2220 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rewrite_tree_in_rewrite_tree_element2225 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rewrite_tree_block_in_rewrite_tree_element2232 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rewrite_tree_ebnf_in_rewrite_tree_element2239 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_CHAR_LITERAL_in_rewrite_tree_atom2255 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_TOKEN_REF_in_rewrite_tree_atom2262 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_TOKEN_REF_in_rewrite_tree_atom2270 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ARG_ACTION_in_rewrite_tree_atom2272 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_RULE_REF_in_rewrite_tree_atom2284 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STRING_LITERAL_in_rewrite_tree_atom2291 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_LABEL_in_rewrite_tree_atom2298 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ACTION_in_rewrite_tree_atom2303 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ebnfSuffix_in_rewrite_tree_ebnf2315 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_rewrite_tree_block_in_rewrite_tree_ebnf2317 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_TREE_BEGIN_in_rewrite_tree2331 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_rewrite_tree_atom_in_rewrite_tree2333 = new BitSet(new long[]{0x00023C2020080F08L});
public static final BitSet FOLLOW_rewrite_tree_element_in_rewrite_tree2335 = new BitSet(new long[]{0x00023C2020080F08L});
public static final BitSet FOLLOW_TEMPLATE_in_rewrite_template2353 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_rewrite_template2355 = new BitSet(new long[]{0x0000000000400000L});
public static final BitSet FOLLOW_rewrite_template_args_in_rewrite_template2357 = new BitSet(new long[]{0x000C000000000000L});
public static final BitSet FOLLOW_set_in_rewrite_template2364 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_rewrite_template_ref_in_rewrite_template2380 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rewrite_indirect_template_head_in_rewrite_template2385 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ACTION_in_rewrite_template2390 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_TEMPLATE_in_rewrite_template_ref2404 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ID_in_rewrite_template_ref2406 = new BitSet(new long[]{0x0000000000400000L});
public static final BitSet FOLLOW_rewrite_template_args_in_rewrite_template_ref2408 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_TEMPLATE_in_rewrite_indirect_template_head2423 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_ACTION_in_rewrite_indirect_template_head2425 = new BitSet(new long[]{0x0000000000400000L});
public static final BitSet FOLLOW_rewrite_template_args_in_rewrite_indirect_template_head2427 = new BitSet(new long[]{0x0000000000000008L});
public static final BitSet FOLLOW_ARGLIST_in_rewrite_template_args2440 = new BitSet(new long[]{0x0000000000000004L});
public static final BitSet FOLLOW_rewrite_template_arg_in_rewrite_template_args2442 = new BitSet(new long[]{0x0000000000200008L});
public static final BitSet FOLLOW_ARGLIST_in_rewrite_template_args2449 = new BitSet(new long[]{0x0000000000000002L} |
9625fbc2-a576-49fd-a464-0729c68ab939 | public java.lang.String getCustomPickList70() {
return this.customPickList70;
} |
dc7bd780-8b53-48be-9e64-5e694d8ec55d | public crmondemand.xml.customobject6.query.QueryType getCustomPickList101() {
return this.customPickList101;
} |
f22e60c1-09aa-4826-bc04-79201408fef5 | public crmondemand.xml.customobject6.query.QueryType getCertficationCertificationNum() {
return this.certficationCertificationNum;
} |
4538f4a5-9e33-4112-9e8f-52d666ec882b | public java.lang.String getAddressValidatedStatus() {
return this.addressValidatedStatus;
} |
30dd6b02-5ca6-458b-8bb3-a09262dbfeba | public java.lang.String getCustomObject11IntegrationId() {
return this.customObject11IntegrationId;
} |
532128dd-6c7e-4620-9dde-36c27aa60fde | public java.lang.String getCustomObject11ExternalSystemId() {
return this.customObject11ExternalSystemId;
} |
6f403503-c801-4ba6-9ed4-d321f41515c7 | public crmondemand.xml.customobject3.query.QueryType getCustomText20() {
return this.customText20;
} |
e0215489-7072-461c-ba50-a4922e96f3bf | public java.util.Calendar getFinancialAccountExchangeDate() {
return this.financialAccountExchangeDate;
} |
bf277558-e265-477d-8423-699891d5d809 | public java.lang.String getCustomObject3ExternalSystemId() {
return this.customObject3ExternalSystemId;
} |
af62bf9b-cd16-4c07-9278-655edaead27a | public java.lang.String getBookId() {
return this.bookId;
} |
7deea012-d8e6-41f6-84a2-4d063c6e1086 | public void setCustomPickList37(java.lang.String customPickList37) {
this.customPickList37 = customPickList37;
} |
65a42ea8-a140-4cfd-b286-920544361aa3 | public void setCustomInteger17(crmondemand.xml.contact.query.QueryType customInteger17) {
this.customInteger17 = customInteger17;
} |
4d686860-b4cf-4dad-8acc-ca414b6273ce | public abstract IMessage crypter(IMessage clair, String key); |
3e36ff37-f371-4ed8-a5bc-1a8c07442ec8 | public void setCustomPhone18(java.lang.String customPhone18) {
this.customPhone18 = customPhone18;
} |
f0483e15-ada2-407b-9dda-6169c143e0fe | public void setCustomText22(java.lang.String customText22) {
this.customText22 = customText22;
} |
b9fac65e-2864-4a81-b34c-ca04436a1382 | public java.lang.String getCustomPickList5() {
return this.customPickList5;
} |
fd382c43-2219-4ebc-9ba3-7167ed0a8aaf | public void setCustomNumber34(crmondemand.xml.opportunity.query.QueryType customNumber34) {
this.customNumber34 = customNumber34;
} |
362bea80-1621-4db6-bcc4-a52a7554529f | public crmondemand.xml.customobject3.query.QueryType getFinancialAccountType() {
return this.financialAccountType;
} |
32034e0d-2eea-42e8-881b-83f0bcca2f18 | public void setExamStatus(java.lang.String examStatus) {
this.examStatus = examStatus;
} |
1da31d6f-f515-414c-b561-601b92a1e15f | public void setAccountExternalSystemId(java.lang.String accountExternalSystemId)
{
this.accountExternalSystemId = accountExternalSystemId;
} |
a5c33aba-5980-4cdd-b720-0330bbdbcd01 | public Builder addPlayers(
org.bwapi.proxy.messages.GameMessages.Player.Builder builderForValue) {
if (playersBuilder_ == null) {
ensurePlayersIsMutable();
players_.add(builderForValue.build());
onChanged();
} else {
playersBuilder_.addMessage(builderForValue.build());
}
return this;
} |
bd673c2f-039d-43f2-9d7e-aee83105466e | @Override
public void keyPressed(KeyEvent e) {
JWindow.this.modele.KeyboardGestion(e);
} |
c82e884d-4071-4517-afb3-066e9e72101d | public void setCustomObject15ExternalSystemId(java.lang.String customObject15ExternalSystemId) {
this.customObject15ExternalSystemId = customObject15ExternalSystemId;
} |
e7e96400-6599-4d72-a01d-17dd99df97be | public java.math.BigDecimal getCustomNumber55() {
return this.customNumber55;
} |
704c483e-f8be-4fc5-b8ab-4ff332c67dcb | public void setCustomObject15IntegrationId(crmondemand.xml.customobject3.query.QueryType customObject15IntegrationId) {
this.customObject15IntegrationId = customObject15IntegrationId;
} |
1e30b5f5-c825-4b23-83e8-b459f0a9caaf | public void draw(Graphics graphics, int x, int y)
{
((Sprite)images.get(currentFrame)).draw(graphics,x,y);
//graphics.drawImage((Image)images.get(currentFrame),x,y,null);
} |
534a57a4-fa7c-44b9-8c6a-6d59cef683ff | public void setCustomPickList73(java.lang.String customPickList73) {
this.customPickList73 = customPickList73;
} |
cab26d05-a89e-4700-bf21-30dfd958a467 | @Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof Java7Listener ) ((Java7Listener)listener).enterCreatedName(this);
} |
659b9013-a89c-42db-ba97-087fb229c3bc | public crmondemand.xml.opportunity.query.QueryType getCustomBoolean24() {
return this.customBoolean24;
} |
5aad7917-e00a-4029-ad47-5b18368ff7da | @Override
public Color getColor(World world, int x, int y) {
Color dColor = new Color(29, 36, 28);
Color lColor = new Color(53, 67, 52);
Color mColor = new Color(40, 50, 39);
int meta = world.getMetadata(x, y, 1);
return meta == 0 ? lColor : (meta == 1 ? dColor : mColor);
} |
81acc784-2555-4f88-8076-485b3ed95286 | public void setCustomText18(crmondemand.xml.contact.query.QueryType customText18) {
this.customText18 = customText18;
} |
85060b40-88e1-4033-9bb9-34c659a8c49e | final public void case_statement_alternative() throws ParseException {
jj_consume_token(WHEN);
choices();
jj_consume_token(155);
sequence_of_statements();
} |
8ec13a14-255c-48b8-bddf-e511d54a015a | public void setCustomPhone18(java.lang.String customPhone18) {
this.customPhone18 = customPhone18;
} |
5cbab758-e23e-4f4e-9361-5d05178469b4 | public java.lang.String getSearchspec() {
return this.searchspec;
} |
edbab312-d059-4356-8c71-2d1b9768118b | final private boolean jj_3R_55() {
if (jj_scan_token(INDEX_SYNTAX_T)) return true;
return false;
} |
d62fc55d-8214-4b8f-8b68-b091c4edb148 | public java.lang.String getVehicleIntegrationId() {
return this.vehicleIntegrationId;
} |
5a22dd85-cfed-4c6c-9701-e4fce75952ef | public void setCustomText36(crmondemand.xml.contact.query.QueryType customText36) {
this.customText36 = customText36;
} |
e88a13a9-11e9-4984-96df-f7c85e761706 | */
@Test
public void testNormConveyorThreeGlassFirstAndSecondNeedDrilling() throws InterruptedException {
Glass testGlass1 = new Glass(new Recipe(false, false, false, false, true, false, false, false, false, false));
Glass testGlass2 = new Glass(new Recipe(false, false, false, false, true, false, false, false, false, false));
Glass testGlass3 = new Glass(new Recipe());
// Set initial state
conveyor.setPopUpCleared(false);
conveyor.msgGlassOnConveyor(testGlass1);
conveyor.msgGlassOnConveyor(testGlass2);
conveyor.msgGlassOnConveyor(testGlass3);
conveyor.pickAndExecuteAnAction();
assertTrue(
"Mock Sensor should have the glass passed onto it. Event log: "
+ getLogs(), popupSensor.log
.containsString("Received message msgSenseGlass"));
assertTrue("Sensor should have only received 1 message."
+ getLogs(), popupSensor.log.size() == 1);
conveyor.msgGlassApproachingPopup(testGlass1);
conveyor.releasePopupSemaphore();
conveyor.pickAndExecuteAnAction();
assertTrue("Sensor should have only received 1 message."
+ getLogs(), popupSensor.log.size() == 1);
assertTrue(
"Mock popup should have been asked if its clear. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgIsPopupClear"));
assertTrue("Popup should have only received 1 message."
+ getLogs(), popup.log.size() == 1);
Thread.sleep(100);
assertTrue(
"Transducer should have received a conveyor stop message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_STOP"));
assertTrue("Transducer should have only received 1 message."
+ getLogs(), transducerLog.size() == 1);
transducerLog.clear();
assertTrue(
"Previous Conveyor Family should have received a conveyor stop message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStopConveyor"));
assertTrue("Previous Conveyor Family should have only received 1 message."
+ getLogs(), previousConveyorFamily.log.size() == 1);
previousConveyorFamily.log.clear();
//run scheduler again to see if the conveyor reacts correctly to not receiving permission to place glass on popup
conveyor.releasePopupSemaphore();
conveyor.pickAndExecuteAnAction();
assertTrue("Sensor should have only received 1 message."
+ getLogs(), popupSensor.log.size() == 1);
assertTrue(
"Mock popup should have been asked if its clear. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgIsPopupClear"));
assertTrue("Popup should have only received 2 messages."
+ getLogs(), popup.log.size() == 2);
Thread.sleep(100);
//Conveyor already stopped, shouldn't send the message to transducer again
//or message previous conveyor family to stop
assertFalse(
"Transducer should have received a conveyor stop message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_STOP"));
assertTrue("Transducer should have only received 0 messages."
+ getLogs(), transducerLog.size() == 0);
transducerLog.clear();
assertFalse(
"Previous Conveyor Family should have received a conveyor stop message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStopConveyor"));
assertTrue("Previous Conveyor Family should have only received 0 messages."
+ getLogs(), previousConveyorFamily.log.size() == 0);
previousConveyorFamily.log.clear();
conveyor.msgPopupClear();
conveyor.pickAndExecuteAnAction();
Thread.sleep(100);
assertTrue(
"Previous Conveyor Family should have received a conveyor start message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStartConveyor"));
assertTrue("Previous Conveyor Family should have only received 1 message."
+ getLogs(), previousConveyorFamily.log.size() == 1);
previousConveyorFamily.log.clear();
assertTrue(
"Transducer should have received a conveyor start message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_START"));
assertTrue("Transducer should have only received 1 message."
+ getLogs(), transducerLog.size() == 1);
transducerLog.clear();
assertTrue(
"Mock popup should have received the first glass. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgGlassOnPopup"));
assertTrue("Popup should have only received 3 messages."
+ getLogs(), popup.log.size() == 3);
assertTrue(
"The glass should need drilling according to recipe. Event log: "
+ getLogs(), popup.log
.containsString("needDrilling true"));
popup.log.clear();
conveyor.pickAndExecuteAnAction();
assertTrue(
"Mock Sensor should have the glass passed onto it. Event log: "
+ getLogs(), popupSensor.log
.containsString("Received message msgSenseGlass"));
assertTrue("Sensor should have only received 2 messages."
+ getLogs(), popupSensor.log.size() == 2);
conveyor.msgGlassApproachingPopup(testGlass2);
conveyor.releasePopupSemaphore();
conveyor.pickAndExecuteAnAction();
assertTrue("Sensor should have only received 2 messages."
+ getLogs(), popupSensor.log.size() == 2);
assertTrue(
"Mock popup should have been asked if its clear. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgIsPopupClear"));
assertTrue("Popup should have only received 1 message."
+ getLogs(), popup.log.size() == 1);
Thread.sleep(100);
assertTrue(
"Transducer should have received a conveyor stop message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_STOP"));
assertTrue("Transducer should have only received 1 message."
+ getLogs(), transducerLog.size() == 1);
transducerLog.clear();
assertTrue(
"Previous Conveyor Family should have received a conveyor stop message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStopConveyor"));
assertTrue("Previous Conveyor Family should have only received 1 message."
+ getLogs(), previousConveyorFamily.log.size() == 1);
previousConveyorFamily.log.clear();
//run scheduler again to see if the conveyor reacts correctly to not receiving permission to place glass on popup
conveyor.releasePopupSemaphore();
conveyor.pickAndExecuteAnAction();
assertTrue("Sensor should have only received 2 messages."
+ getLogs(), popupSensor.log.size() == 2);
assertTrue(
"Mock popup should have been asked if its clear. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgIsPopupClear"));
assertTrue("Popup should have only received 2 messages."
+ getLogs(), popup.log.size() == 2);
Thread.sleep(100);
//Conveyor already stopped, shouldn't send the message to transducer again
//or message previous conveyor family to stop
assertFalse(
"Transducer should have received a conveyor stop message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_STOP"));
assertTrue("Transducer should have only received 0 messages."
+ getLogs(), transducerLog.size() == 0);
transducerLog.clear();
assertFalse(
"Previous Conveyor Family should have received a conveyor stop message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStopConveyor"));
assertTrue("Previous Conveyor Family should have only received 0 messages."
+ getLogs(), previousConveyorFamily.log.size() == 0);
previousConveyorFamily.log.clear();
conveyor.msgPopupClear();
conveyor.pickAndExecuteAnAction();
Thread.sleep(100);
assertTrue(
"Previous Conveyor Family should have received a conveyor start message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStartConveyor"));
assertTrue("Previous Conveyor Family should have only received 1 message."
+ getLogs(), previousConveyorFamily.log.size() == 1);
previousConveyorFamily.log.clear();
assertTrue(
"Transducer should have received a conveyor start message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_START"));
assertTrue("Transducer should have only received 1 message."
+ getLogs(), transducerLog.size() == 1);
transducerLog.clear();
assertTrue(
"Mock popup should have received the second glass. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgGlassOnPopup"));
assertTrue("Popup should have only received 3 messages."
+ getLogs(), popup.log.size() == 3);
assertTrue(
"The glass should need drilling according to recipe. Event log: "
+ getLogs(), popup.log
.containsString("needDrilling true"));
popup.log.clear();
conveyor.pickAndExecuteAnAction();
assertTrue(
"Mock Sensor should have the glass passed onto it. Event log: "
+ getLogs(), popupSensor.log
.containsString("Received message msgSenseGlass"));
assertTrue("Sensor should have only received 3 messages."
+ getLogs(), popupSensor.log.size() == 3);
conveyor.msgGlassApproachingPopup(testGlass3);
conveyor.releasePopupSemaphore();
conveyor.pickAndExecuteAnAction();
assertTrue("Sensor should have only received 3 messages."
+ getLogs(), popupSensor.log.size() == 3);
assertTrue(
"Mock popup should have been asked if its clear. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgIsPopupClear"));
assertTrue("Popup should have only received 1 message."
+ getLogs(), popup.log.size() == 1);
Thread.sleep(100);
assertTrue(
"Transducer should have received a conveyor stop message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_STOP"));
assertTrue("Transducer should have only received 1 message."
+ getLogs(), transducerLog.size() == 1);
transducerLog.clear();
assertTrue(
"Previous Conveyor Family should have received a conveyor stop message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStopConveyor"));
assertTrue("Previous Conveyor Family should have only received 1 message."
+ getLogs(), previousConveyorFamily.log.size() == 1);
previousConveyorFamily.log.clear();
//run scheduler again to see if the conveyor reacts correctly to not receiving permission to place glass on popup
conveyor.releasePopupSemaphore();
conveyor.pickAndExecuteAnAction();
assertTrue("Sensor should have only received 3 messages."
+ getLogs(), popupSensor.log.size() == 3);
assertTrue(
"Mock popup should have been asked if its clear. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgIsPopupClear"));
assertTrue("Popup should have only received 2 messages."
+ getLogs(), popup.log.size() == 2);
Thread.sleep(100);
//Conveyor already stopped, shouldn't send the message to transducer again
//or message previous conveyor family to stop
assertFalse(
"Transducer should have received a conveyor stop message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_STOP"));
assertTrue("Transducer should have only received 0 messages."
+ getLogs(), transducerLog.size() == 0);
transducerLog.clear();
assertFalse(
"Previous Conveyor Family should have received a conveyor stop message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStopConveyor"));
assertTrue("Previous Conveyor Family should have only received 0 messages."
+ getLogs(), previousConveyorFamily.log.size() == 0);
previousConveyorFamily.log.clear();
conveyor.msgPopupClear();
conveyor.pickAndExecuteAnAction();
Thread.sleep(100);
assertTrue(
"Previous Conveyor Family should have received a conveyor start message. Event log: "
+ getLogs(), previousConveyorFamily.log
.containsString("Received message msgStartConveyor"));
assertTrue("Previous Conveyor Family should have only received 1 message."
+ getLogs(), previousConveyorFamily.log.size() == 1);
previousConveyorFamily.log.clear();
assertTrue(
"Transducer should have received a conveyor start message. Event log: "
+ getLogs(), transducerLog
.containsString("Received fired event: CONVEYOR_DO_START"));
assertTrue("Transducer should have only received 1 message."
+ getLogs(), transducerLog.size() == 1);
transducerLog.clear();
assertTrue(
"Mock popup should have received the third glass. Event log: "
+ getLogs(), popup.log
.containsString("Received message msgGlassOnPopup"));
assertTrue("Popup should have only received 3 messages."
+ getLogs(), popup.log.size() == 3);
assertTrue(
"The glass should not need drilling according to recipe. Event log: "
+ getLogs(), popup.log
.containsString("needDrilling false"));
} |
58405e08-ba71-43dc-b9a9-aa60cad62e5a | public void setCustomObject8Id(crmondemand.xml.opportunity.query.QueryType customObject8Id) {
this.customObject8Id = customObject8Id;
} |
eae0f3e2-e7c0-472e-bdf6-b0b2c108fbca | public QueryPair() {
} |
8ac097dd-fda8-4fb9-af52-966f6ce49523 | public void printBlock(){
System.out.print( "sig(" + signature.name + ")" );
} |
8b736b2c-1681-47a5-b051-7a6bfc71b378 | public void setCustomNumber23(crmondemand.xml.opportunity.query.QueryType customNumber23) {
this.customNumber23 = customNumber23;
} |
515778b9-4225-469d-b3db-a1c4d32962fe | public String getName() {
return this.name;
} |
731fa44f-bb0a-41db-974a-420aa8fd6147 | public void setCustomDate3(crmondemand.xml.customobject6.query.QueryType customDate3) {
this.customDate3 = customDate3;
} |
0cb5ada2-56af-408e-b2a3-a915c6874933 | public crmondemand.xml.customobject6.query.QueryType getCustomObject13Id() {
return this.customObject13Id;
} |
0ce00281-f085-4906-a922-e31933523531 | public crmondemand.xml.contact.query.QueryType getCustomPhone11() {
return this.customPhone11;
} |
d93fe7e8-37e1-4baa-9511-978e38f35fb0 | public java.lang.String getCustomText57() {
return this.customText57;
} |
9fe079a9-2b46-4aec-bcf3-e951b164663a | public java.lang.String getFundId() {
return this.fundId;
} |
e870a859-6769-458d-8884-2589ca951295 | public java.lang.String getCustomPhone6() {
return this.customPhone6;
} |
d1401c9c-ecdb-4148-a643-912403b6b723 | public crmondemand.xml.contact.query.QueryType getCustomDate5() {
return this.customDate5;
} |
9c3bc9cc-d8be-4cef-b5eb-23b56e1f07d3 | public java.math.BigDecimal getCustomNumber44() {
return this.customNumber44;
} |
d6468871-6b18-421a-9f64-f041af78a677 | public void setCustomPickList46(crmondemand.xml.contact.query.QueryType customPickList46) {
this.customPickList46 = customPickList46;
} |
0271657a-01a9-4c59-bdab-1409e3d306fe | public void setCustomNumber26(java.math.BigDecimal customNumber26) {
this.customNumber26 = customNumber26;
} |
3525a866-0cbd-465a-9896-3a3069ef6fe3 | public java.lang.String getContactType() {
return this.contactType;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.