Home
last modified time | relevance | path

Searched refs:tokenType (Results 1 – 25 of 115) sorted by relevance

12345

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/
DCsmToken.java34 private final int tokenType; field in CsmToken
43 return tokenType; in getTokenType()
53 public CsmToken(int tokenType) { in CsmToken() argument
54 this.tokenType = tokenType; in CsmToken()
55 this.content = GeneratedJavaParserConstants.tokenImage[tokenType]; in CsmToken()
59 if (isEndOfLineToken(tokenType)) { in CsmToken()
61 } else if (isSpaceOrTab(tokenType)) { in CsmToken()
66 public CsmToken(int tokenType, String content) { in CsmToken() argument
67 this.tokenType = tokenType; in CsmToken()
71 public CsmToken(int tokenType, TokenContentCalculator tokenContentCalculator) { in CsmToken() argument
[all …]
DCsmElement.java51 static CsmElement string(int tokenType, String content) { in string() argument
52 return new CsmToken(tokenType, content); in string()
55 static CsmElement string(int tokenType) { in string() argument
56 return new CsmToken(tokenType); in string()
67 static CsmElement token(int tokenType) { in token() argument
68 return new CsmToken(tokenType); in token()
71 static CsmElement token(int tokenType, CsmToken.TokenContentCalculator tokenContentCalculator) { in token() argument
72 return new CsmToken(tokenType, tokenContentCalculator); in token()
/external/antlr/runtime/ObjC/Framework/
DDebugTreeAdaptor.m148 - (id<BaseTree>) newTreeWithTokenType:(NSInteger)tokenType
150 id<BaseTree> newTree = [treeAdaptor newTreeWithTokenType:tokenType];
151 [debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:nil type:tokenType];
155 - (id<BaseTree>) newTreeWithTokenType:(NSInteger)tokenType text:(NSString *)tokenText
157 id<BaseTree> newTree = [treeAdaptor newTreeWithTokenType:tokenType text:tokenText];
158 [debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:tokenText type:tokenType];
161 - (id<BaseTree>) newTreeWithToken:(id<Token>)fromToken tokenType:(NSInteger)tokenType
163 id<BaseTree> newTree = [treeAdaptor newTreeWithToken:fromToken tokenType:tokenType];
164 …[debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:fromToken.text type:tokenType
168 - (id<BaseTree>) newTreeWithToken:(id<Token>)fromToken tokenType:(NSInteger)tokenType text:(NSStrin…
[all …]
DTreeAdaptor.h107 - (id) createTree:(NSInteger)tokenType FromToken:(id<Token>)fromToken;
108 - (id) createTree:(NSInteger)tokenType FromToken:(id<Token>)fromToken Text:(NSString *)text;
109 - (id) createTree:(NSInteger)tokenType Text:(NSString *)text;
117 - (void) setType:(id)aNode Type:(NSInteger)tokenType;
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DBaseTreeAdaptor.cs198 public virtual object Create(int tokenType, IToken fromToken) { in Create() argument
201 fromToken.Type = tokenType; in Create()
206 public virtual object Create(int tokenType, IToken fromToken, string text) { in Create() argument
208 return Create(tokenType, text); in Create()
211 fromToken.Type = tokenType; in Create()
217 public virtual object Create(int tokenType, string text) { in Create() argument
218 IToken fromToken = CreateToken(tokenType, text); in Create()
283 public abstract IToken CreateToken(int tokenType, string text); in CreateToken() argument
DTreeWizard.cs565 int tokenType = adaptor.getType( node ); in fillReverseIndex()
567 tokenTypesToReverseIndex.Contains( tokenType ) ) ) in fillReverseIndex()
573 … if ( !tokenTypeToStreamIndexesMap.TryGetValue( tokenType, out indexes ) || indexes == null ) in fillReverseIndex()
577 tokenTypeToStreamIndexesMap[tokenType] = indexes; in fillReverseIndex()
596 public void reverseIndex( int tokenType ) in reverseIndex() argument
606 tokenTypesToReverseIndex.add( tokenType ); in reverseIndex()
637 int tokenType = adaptor.getType( node ); in getNodeIndex()
639 … if ( !tokenTypeToStreamIndexesMap.TryGetValue( tokenType, out indexes ) || indexes == null ) in getNodeIndex()
DITreeAdaptor.cs206 object Create(int tokenType, IToken fromToken); in Create() argument
218 object Create(int tokenType, IToken fromToken, string text); in Create() argument
230 object Create(int tokenType, string text); in Create() argument
/external/antlr/runtime/Cpp/include/
Dantlr3commontreeadaptor.hpp71 TreeType* createTypeToken( ANTLR_UINT32 tokenType, CommonTokenType* fromToken);
72 …TreeType* createTypeTokenText ( ANTLR_UINT32 tokenType, CommonTokenType* fromToken, const ANTL…
73 TreeType* createTypeText ( ANTLR_UINT32 tokenType, const ANTLR_UINT8* text);
88 CommonTokenType* createToken( ANTLR_UINT32 tokenType, const ANTLR_UINT8* text);
147 TreeType* createTypeToken(ANTLR_UINT32 tokenType, CommonTokenType* fromToken);
148 …TreeType* createTypeTokenText(ANTLR_UINT32 tokenType, CommonTokenType* fromToken, ANTLR_UINT8* tex…
149 TreeType* createTypeText( ANTLR_UINT32 tokenType, ANTLR_UINT8* text);
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java191 public Object create(int tokenType, Token fromToken) { in create() argument
194 fromToken.setType(tokenType); in create()
200 public Object create(int tokenType, Token fromToken, String text) { in create() argument
201 if (fromToken == null) return create(tokenType, text); in create()
203 fromToken.setType(tokenType); in create()
210 public Object create(int tokenType, String text) { in create() argument
211 Token fromToken = createToken(tokenType, text); in create()
281 public abstract Token createToken(int tokenType, String text); in createToken() argument
DTreeParser.java116 int tokenType = input.getTreeAdaptor().getType(look); in matchAny() local
117 while ( tokenType!=Token.EOF && !(tokenType==UP && level==0) ) { in matchAny()
120 tokenType = input.getTreeAdaptor().getType(look); in matchAny()
121 if ( tokenType == DOWN ) { in matchAny()
124 else if ( tokenType == UP ) { in matchAny()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/
DTreeParser.js64 tokenType = this.input.getTreeAdaptor().getType(look);
65 while ( tokenType!==org.antlr.runtime.Token.EOF &&
66 !(tokenType===TP.UP && level===0) )
70 tokenType = this.input.getTreeAdaptor().getType(look);
71 if ( tokenType === TP.DOWN ) {
74 else if ( tokenType === TP.UP ) {
DBaseTreeAdaptor.js139 create: function(tokenType, fromToken) { argument
144 fromToken = this.createToken(tokenType, text);
149 fromToken.setType(tokenType);
156 fromToken.setType(tokenType);
/external/antlr/runtime/C/src/
Dantlr3basetreeadaptor.c58 …REE createTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
59 …E dbgCreateTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
60 … createTypeTokenText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
61 …bgCreateTypeTokenText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
62 …TREE createTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…
63 …EE dbgCreateTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…
760 createTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN f… in createTypeToken() argument
768 fromToken->setType(fromToken, tokenType); in createTypeToken()
775 dbgCreateTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKE… in dbgCreateTypeToken() argument
779 t = createTypeToken(adaptor, tokenType, fromToken); in dbgCreateTypeToken()
[all …]
/external/smali/smalidea/src/main/java/org/jf/smalidea/
DSmaliLexer.java84 private IElementType mapTokenTypeToElementType(int tokenType) { in mapTokenTypeToElementType() argument
85 if (tokenType == smaliParser.WHITE_SPACE) { in mapTokenTypeToElementType()
88 if (tokenType == smaliParser.INVALID_TOKEN) { in mapTokenTypeToElementType()
91 if (tokenType == smaliParser.EOF) { in mapTokenTypeToElementType()
94 return SmaliTokens.getElementType(tokenType); in mapTokenTypeToElementType()
DSmaliHighlighter.java46 @NotNull @Override public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { in getTokenHighlights() argument
47 if (tokenType instanceof SmaliLexicalElementType) { in getTokenHighlights()
48 return ((SmaliLexicalElementType) tokenType).textAttributesKeys; in getTokenHighlights()
/external/nist-sip/java/gov/nist/core/
DLexerCore.java181 tok.tokenType = type.intValue(); in peekNextToken()
183 tok.tokenType = ID; in peekNextToken()
188 tok.tokenType = ALPHA; in peekNextToken()
190 tok.tokenType = DIGIT; in peekNextToken()
192 tok.tokenType = (int) nextChar; in peekNextToken()
216 this.currentMatch.tokenType = ID; in match()
223 this.currentMatch.tokenType = SAFE; in match()
234 this.currentMatch.tokenType = tok; in match()
245 this.currentMatch.tokenType = tok; in match()
254 this.currentMatch.tokenType = tok; in match()
DToken.java39 protected int tokenType; field in Token
44 return this.tokenType; in getTokenType()
47 return "tokenValue = " + tokenValue + "/tokenType = " + tokenType; in toString()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugTreeAdaptor.cs146 public virtual object Create(int tokenType, IToken fromToken) { in Create() argument
147 object node = adaptor.Create(tokenType, fromToken); in Create()
152 public virtual object Create(int tokenType, IToken fromToken, string text) { in Create() argument
153 object node = adaptor.Create(tokenType, fromToken, text); in Create()
158 public virtual object Create(int tokenType, string text) { in Create() argument
159 object node = adaptor.Create(tokenType, text); in Create()
/external/icu/libicu/cts_headers/
Dplurrule_impl.h120 enum tokenType { enum
166 static tokenType getKeyType(const UnicodeString& token, tokenType type);
167 static tokenType charType(UChar ch);
173 tokenType type;
174 tokenType prevType;
256 PluralOperand tokenTypeToPluralOperand(tokenType tt);
359 tokenType digitsType = none; // n | i | v | f constraint.
/external/icu/icu4c/source/i18n/
Dplurrule_impl.h120 enum tokenType { enum
166 static tokenType getKeyType(const UnicodeString& token, tokenType type);
167 static tokenType charType(UChar ch);
173 tokenType type;
174 tokenType prevType;
256 PluralOperand tokenTypeToPluralOperand(tokenType tt);
359 tokenType digitsType = none; // n | i | v | f constraint.
/external/cronet/third_party/icu/source/i18n/
Dplurrule_impl.h120 enum tokenType { enum
166 static tokenType getKeyType(const UnicodeString& token, tokenType type);
167 static tokenType charType(UChar ch);
173 tokenType type;
174 tokenType prevType;
256 PluralOperand tokenTypeToPluralOperand(tokenType tt);
359 tokenType digitsType = none; // n | i | v | f constraint.
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugTreeAdaptor.java153 public Object create(int tokenType, Token fromToken) { in create() argument
154 Object node = adaptor.create(tokenType, fromToken); in create()
160 public Object create(int tokenType, Token fromToken, String text) { in create() argument
161 Object node = adaptor.create(tokenType, fromToken, text); in create()
167 public Object create(int tokenType, String text) { in create() argument
168 Object node = adaptor.create(tokenType, text); in create()
/external/antlr/runtime/C/include/
Dantlr3basetreeadaptor.h94 …oken) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
95 …nText) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
96 …Text) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…
119 …ken) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DTokenBuffer.java2112 public Segment append(int index, JsonToken tokenType) in append() argument
2115 set(index, tokenType); in append()
2119 _next.set(0, tokenType); in append()
2123 public Segment append(int index, JsonToken tokenType, in append() argument
2127 set(index, tokenType, objectId, typeId); in append()
2131 _next.set(0, tokenType, objectId, typeId); in append()
2135 public Segment append(int index, JsonToken tokenType, Object value) in append() argument
2138 set(index, tokenType, value); in append()
2142 _next.set(0, tokenType, value); in append()
2146 public Segment append(int index, JsonToken tokenType, Object value, in append() argument
[all …]
/external/antlr/runtime/Python3/antlr3/
Dtree.py425 def createFromToken(self, tokenType, fromToken, text=None): argument
439 def createFromType(self, tokenType, text): argument
1101 def createFromToken(self, tokenType, fromToken, text=None): argument
1103 return self.createFromType(tokenType, text)
1105 assert isinstance(tokenType, int), type(tokenType).__name__
1110 fromToken.type = tokenType
1117 def createFromType(self, tokenType, text): argument
1118 assert isinstance(tokenType, int), type(tokenType).__name__
1121 fromToken = self.createToken(tokenType=tokenType, text=text)
1162 def createToken(self, fromToken=None, tokenType=None, text=None): argument
[all …]

12345