public int getAccessor ( String name ) { if ( name == null ) name = "" ; StringTokenizer path = new StringTokenizer ( name , "/" ) ; JMFType pos = getEffectiveType ( jsTypeTree ) ; while ( pos != null && path . hasMoreTokens ( ) ) pos = findChild ( getEffectiveType ( pos ) , path . nextToken ( ) ) ; if ( pos instanceof JSVariant && ( ( JSVariant ) pos ) . getBoxed ( ) != null ) return ( ( JSVariant ) pos ) . getBoxed ( ) . getAccessor ( "" ) ; else if ( pos instanceof JSField ) return ( ( JSField ) pos ) . getAccessor ( ) ; else return - 1 ; }
Resolve a symbolic name to an accessor