com.sap.tc.logging

Class Tokenizer

java.lang.Object
  extended by com.sap.tc.logging.Tokenizer
All Implemented Interfaces:
Cloneable, Iterator

public class Tokenizer
extends Object
implements Iterator, Cloneable

A tokenizer presentation


Field Summary
protected  String content
           
protected  int currIdx
           
protected  int length
           
 
Constructor Summary
Tokenizer(String content)
          the constructor
 
Method Summary
 Object clone()
           
 String getAcceptedContent()
           
 String getContent()
           
 String getFullContent()
           
 com.sap.tc.logging.Token getLookahead()
           
 boolean hasNext()
           
 Object next()
           
 com.sap.tc.logging.Token nextToken()
          standard nextToken implementation
 com.sap.tc.logging.Token nextTokenInt()
          calculates the type of the token
 void remove()
          not implemented method.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected String content

currIdx

protected int currIdx

length

protected int length
Constructor Detail

Tokenizer

public Tokenizer(String content)
the constructor

Parameters:
content - - the content that has to be processed as tokens
Method Detail

nextToken

public com.sap.tc.logging.Token nextToken()
standard nextToken implementation

Returns:
the next token

nextTokenInt

public com.sap.tc.logging.Token nextTokenInt()
calculates the type of the token

Returns:
a token of given type ( NONE | UNKNOWN | UNPARSED | IDENT)

getLookahead

public com.sap.tc.logging.Token getLookahead()
Returns:
the next token

getContent

public String getContent()
Returns:
the content to go

getAcceptedContent

public String getAcceptedContent()
Returns:
the evaluated content

getFullContent

public String getFullContent()
Returns:
the content that was given initially to this tokenizer

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Returns:
true - when there is a next token false - when there is not a next token

next

public Object next()
Specified by:
next in interface Iterator
Returns:
the next token

remove

public void remove()
not implemented method. Calling it results in UnsupportedOperationException.

Specified by:
remove in interface Iterator

clone

public Object clone()
Overrides:
clone in class Object
Returns:
the cloned object for the current one
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] BRMS-FACADE [sap.com] tc/brms/edit/api api BC-BMT-BRM-ENG
[sap.com] BRMS-FACADE [sap.com] tc/brms/facade api BC-BMT-BRM-ENG
[sap.com] CORE-TOOLS [sap.com] com.sap.engine.client.libdeprecated - BC-JAS
[sap.com] ENGFACADE [sap.com] public.test.facade runtime BC-TWB-TST-JUT
[sap.com] ENGFACADE [sap.com] tc/bl/logging/api api BC-JAS
[sap.com] ENGINEAPI [sap.com] tc/loggingdeprecated - BC-JAS-ADM-LOG-API
[sap.com] ENGINEAPI [sap.com] tc/loggingdeprecated default BC-JAS-ADM-LOG-API
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] FRAMEWORK [sap.com] tc/ddic/ddicruntime default BC-DWB-JDD


Copyright 2014 SAP AG Complete Copyright Notice