Top Description Fields Constructors Methods
com.sun.tools.xjc.util

public final Class StringCutter

extends Object
Class Inheritance
Imports
java.text.ParseException, java.util.regex.Matcher, .Pattern

Utility class to parse a string
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private boolean
private final String
private String
s

Constructor Summary

AccessConstructor and Description
public
StringCutter(String s, boolean ignoreWhitespace)

Method Summary

Modifier and TypeMethod and Description
private ParseException
public int
public String
next(String regexp)

public char
peek()

public void
skip(String regexp)

private void
trim()

public String
until(String regexp)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ignoreWhitespaceback to summary
private boolean ignoreWhitespace
originalback to summary
private final String original
sback to summary
private String s

Constructor Detail

StringCutterback to summary
public StringCutter(String s, boolean ignoreWhitespace)

Method Detail

errorback to summary
private ParseException error()
lengthback to summary
public int length()
nextback to summary
public String next(String regexp) throws ParseException
peekback to summary
public char peek()
skipback to summary
public void skip(String regexp) throws ParseException
trimback to summary
private void trim()
untilback to summary
public String until(String regexp) throws ParseException