Methods Summary |
---|
public static int | methodOff(java.lang.String n)
int moff = n.lastIndexOf( '." );
if ( moff >= 0 ) return moff;
// curses. Must work harder.
// Cannot just say lastIndexOf('/'), as that
// may get us into the signature.
int ending = n.indexOf( '(" );
if ( ending < 0 ) ending = n.length();
moff = n.lastIndexOf( '/", ending );
return moff;
|
public static java.lang.String[] | parseOptionFile(java.lang.String fname)
java.util.Vector v = new java.util.Vector();
java.io.StreamTokenizer in;
in = new java.io.StreamTokenizer(
new java.io.BufferedInputStream(
new java.io.FileInputStream( fname ) ) );
in.resetSyntax();
in.eolIsSignificant( false );
in.whitespaceChars( 0, 0x20 );
in.wordChars( '!", '~" );
in.commentChar('#");
while ( in.nextToken() != java.io.StreamTokenizer.TT_EOF ){
v.addElement( in.sval );
}
int n = v.size();
String olist[] = new String[ n ];
v.copyInto( olist );
return olist;
|
public static java.lang.String | sanitizeClassname(java.lang.String classname)
/*
* Classes are often written with . as component separator.
* But in classfiles, as internally in our programs, we use /.
* So we often want to find all instances of . and change them
* into /.
*/
return classname.replace('.", '/").intern();
|
public static int | sigOff(java.lang.String n)
return n.indexOf( '(" );
|