Home
last modified time | relevance | path

Searched refs:trappedException (Results 1 – 10 of 10) sorted by relevance

/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DCommonErrorNode.cs43 public RecognitionException trappedException; field in Antlr.Runtime.Tree.CommonErrorNode
62 this.trappedException = e; in CommonErrorNode()
118 if ( trappedException is MissingTokenException ) in ToString()
121 ( (MissingTokenException)trappedException ).MissingType + in ToString()
124 else if ( trappedException is UnwantedTokenException ) in ToString()
127 ( (UnwantedTokenException)trappedException ).UnexpectedToken + in ToString()
130 else if ( trappedException is MismatchedTokenException ) in ToString()
132 return "<mismatched token: " + trappedException.Token + ", resync=" + Text + ">"; in ToString()
134 else if ( trappedException is NoViableAltException ) in ToString()
136 return "<unexpected: " + trappedException.Token + in ToString()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DCommonErrorNode.cs41 public RecognitionException trappedException; field in Antlr.Runtime.Tree.CommonErrorNode
58 this.trappedException = e; in CommonErrorNode()
99 if (trappedException is MissingTokenException) { in ToString()
101 ((MissingTokenException)trappedException).MissingType + in ToString()
103 } else if (trappedException is UnwantedTokenException) { in ToString()
105 ((UnwantedTokenException)trappedException).UnexpectedToken + in ToString()
107 } else if (trappedException is MismatchedTokenException) { in ToString()
108 return "<mismatched token: " + trappedException.Token + ", resync=" + Text + ">"; in ToString()
109 } else if (trappedException is NoViableAltException) { in ToString()
110 return "<unexpected: " + trappedException.Token + in ToString()
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DCommonErrorNode.java37 public RecognitionException trappedException; field in CommonErrorNode
56 this.trappedException = e; in CommonErrorNode()
93 if ( trappedException instanceof MissingTokenException ) { in toString()
95 ((MissingTokenException)trappedException).getMissingType()+ in toString()
98 else if ( trappedException instanceof UnwantedTokenException ) { in toString()
100 ((UnwantedTokenException)trappedException).getUnexpectedToken()+ in toString()
103 else if ( trappedException instanceof MismatchedTokenException ) { in toString()
104 return "<mismatched token: "+trappedException.token+", resync="+getText()+">"; in toString()
106 else if ( trappedException instanceof NoViableAltException ) { in toString()
107 return "<unexpected: "+trappedException.token+ in toString()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/
DCommonErrorNode.js15 this.trappedException = e;
49 if ( this.trappedException instanceof org.antlr.runtime.MissingTokenException ) {
51 this.trappedException.getMissingType()+
54 else if ( this.trappedException instanceof org.antlr.runtime.UnwantedTokenException ) {
56 this.trappedException.getUnexpectedToken()+
59 else if ( this.trappedException instanceof org.antlr.runtime.MismatchedTokenException ) {
60 return "<mismatched token: "+this.trappedException.token+", resync="+this.getText()+">";
62 else if ( this.trappedException instanceof org.antlr.runtime.NoViableAltException ) {
63 return "<unexpected: "+this.trappedException.token+
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DCommonErrorNode.as11 public var trappedException:RecognitionException; variable in org.antlr.runtime.tree.CommonErrorNode
30 this.trappedException = e;
63 if ( trappedException is MissingTokenException ) {
65 MissingTokenException(trappedException).missingType+
68 else if ( trappedException is UnwantedTokenException ) {
70 UnwantedTokenException(trappedException).unexpectedToken+
73 else if ( trappedException is MismatchedTokenException ) {
74 return "<mismatched token: "+trappedException.token+", resync="+getText()+">";
76 else if ( trappedException is NoViableAltException ) {
77 return "<unexpected: "+trappedException.token+
/external/antlr/runtime/ObjC/Framework/
DCommonErrorNode.m79 trappedException = e;
80 if ( trappedException ) [trappedException retain];
93 if ( trappedException ) [trappedException release];
132 if ( [trappedException isKindOfClass:[MissingTokenException class]] ) {
134 [(MissingTokenException *)trappedException getMissingType]];
137 else if ( [trappedException isKindOfClass:[UnwantedTokenException class]] ) {
139 [trappedException getUnexpectedToken],
143 else if ( [trappedException isKindOfClass:[MismatchedTokenException class]] ) {
144 …aString = [NSString stringWithFormat:@"<mismatched token: %@, resync=%@>", trappedException.token,…
147 else if ( [trappedException isKindOfClass:[NoViableAltException class]] ) {
[all …]
DCommonErrorNode.h43 RecognitionException *trappedException; variable
66 @property (retain) RecognitionException *trappedException;
/external/antlr/runtime/Python3/antlr3/
Dtree.py1407 self.trappedException = exc
1439 if isinstance(self.trappedException, MissingTokenException):
1441 + str(self.trappedException.getMissingType())
1444 elif isinstance(self.trappedException, UnwantedTokenException):
1446 + str(self.trappedException.getUnexpectedToken())
1449 elif isinstance(self.trappedException, MismatchedTokenException):
1451 + str(self.trappedException.token)
1454 elif isinstance(self.trappedException, NoViableAltException):
1456 + str(self.trappedException.token)
/external/antlr/runtime/Python/antlr3/
Dtree.py1418 self.trappedException = exc
1450 if isinstance(self.trappedException, MissingTokenException):
1452 + str(self.trappedException.getMissingType())
1455 elif isinstance(self.trappedException, UnwantedTokenException):
1457 + str(self.trappedException.getUnexpectedToken())
1460 elif isinstance(self.trappedException, MismatchedTokenException):
1462 + str(self.trappedException.token)
1465 elif isinstance(self.trappedException, NoViableAltException):
1467 + str(self.trappedException.token)
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DANTLR.g173 public RecognitionException trappedException;
190 this.trappedException = e;
226 if (trappedException instanceof MissingTokenException)
229 ( (MissingTokenException)trappedException ).getMissingType() +
231 } else if (trappedException instanceof UnwantedTokenException) {
233 ( (UnwantedTokenException)trappedException ).getUnexpectedToken() +
235 } else if (trappedException instanceof MismatchedTokenException) {
236 return "<mismatched token: " + trappedException.token + ", resync=" + getText() + ">";
237 } else if (trappedException instanceof NoViableAltException) {
238 return "<unexpected: " + trappedException.token +