Send bugs or comments to Bernd Kühl (bernd@informatik.uni-osnabrueck.de)

lolo.scans
Class JavaIdentifier

java.lang.Object
  |
  +--lolo.Scan
        |
        +--lolo.scans.Scan
              |
              +--lolo.scans.SimpleIdentifier
                    |
                    +--lolo.scans.JavaIdentifier
All Implemented Interfaces:
java.io.Serializable

public class JavaIdentifier
extends SimpleIdentifier

Instances of this class scan for Java identifiers and use the methods java.lang.Character.isJavaIdentifierStart() and java.lang.Character.isJavaIdentifierPart() to check the characters.

Author:
Bernd Kühl (bernd@informatik.uni-osnabrueck.de)
See Also:
Serialized Form

Inner classes inherited from class lolo.Scan
Scan.Action, Scan.State
 
Fields inherited from class lolo.scans.SimpleIdentifier
start
 
Fields inherited from class lolo.scans.Scan
reset, stateObject
 
Fields inherited from class lolo.Scan
action, ignore
 
Constructor Summary
JavaIdentifier()
           
 
Method Summary
protected  boolean testPart(char ch)
          Tests the characters.
protected  boolean testStart(char ch)
          Tests the first character.
 
Methods inherited from class lolo.scans.SimpleIdentifier
nextChar, reset
 
Methods inherited from class lolo.scans.Scan
equals, hashCode, toString
 
Methods inherited from class lolo.Scan
action, getAction, getIgnore, setAction, setIgnore
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaIdentifier

public JavaIdentifier()
Method Detail

testStart

protected boolean testStart(char ch)
Description copied from class: SimpleIdentifier
Tests the first character.
Overrides:
testStart in class SimpleIdentifier
Following copied from class: lolo.scans.SimpleIdentifier
Parameters:
ch - the first charatcer of the symbol.
Returns:
true if the character is a legal first character.

testPart

protected boolean testPart(char ch)
Description copied from class: SimpleIdentifier
Tests the characters.
Overrides:
testPart in class SimpleIdentifier
Following copied from class: lolo.scans.SimpleIdentifier
Parameters:
ch - the next charatcer of the symbol.
Returns:
true if the characters are a legal characters.

Send bugs or comments to Bernd Kühl (bernd@informatik.uni-osnabrueck.de)