static String prefix(String value) { if(!isCompound(value)) return null; return prefix(value, countParts(value) - 1); }
static String suffix(String name) { if(!isCompound(name)) return null; return suffix(name, countParts(name) - 1); }
return this.classCache.get(name); final boolean unqualifiedName = !Name.isCompound(name);
}else if ( defaultPackage == null || Name.isCompound( clasName ) ) descriptor = "L" + clasName.replace('.','/') + ";"; else
boolean unqualifiedName = !Name.isCompound(name);
}else if ( defaultPackage == null || Name.isCompound( clasName ) ) descriptor = "L" + clasName.replace('.','/') + ";"; else
if ( !isCompound(evalName) ) while( evalName != null && isCompound( evalName ) )
if ( !isCompound(evalName) ) while( evalName != null && isCompound( evalName ) )
/** Assign the value to the name. name may evaluate to anything assignable. e.g. a variable or field. */ public void set( String name, Object value ) throws EvalError { // map null to Primtive.NULL coming in... if ( value == null ) value = Primitive.NULL; CallStack callstack = new CallStack(); try { if ( Name.isCompound( name ) ) { LHS lhs = globalNameSpace.getNameResolver( name ).toLHS( callstack, this ); lhs.assign( value, false ); } else // optimization for common case globalNameSpace.setVariable( name, value, false ); } catch ( UtilEvalError e ) { throw e.toEvalError( SimpleNode.JAVACODE, callstack ); } }
if ( classNameSpace != null ) if ( isCompound( evalName ) ) result = classNameSpace.getThis( interpreter ); else
/** Assign the value to the name. name may evaluate to anything assignable. e.g. a variable or field. */ public void set( String name, Object value ) throws EvalError { // map null to Primtive.NULL coming in... if ( value == null ) value = Primitive.NULL; CallStack callstack = new CallStack(); try { if ( Name.isCompound( name ) ) { LHS lhs = globalNameSpace.getNameResolver( name ).toLHS( new BshEvaluatingVisitor(callstack, this) ); lhs.assign( value, false ); } else // optimization for common case globalNameSpace.setVariable( name, value, false ); } catch ( UtilEvalError e ) { throw e.toEvalError( SimpleNode.JAVACODE, callstack ); } }
if ( Name.isCompound( fullname ) ) try { clas = getNameResolver( fullname ).toClass();
if ( classNameSpace != null ) if ( isCompound( evalName ) ) result = classNameSpace.getThis( visitor.getInterpreter() ); else
if (Name.isCompound(fullname)) try { clas = this.getNameResolver(fullname).toClass();
bcm, classOfStaticMethod, methodName, args, callerInfo ); if ( !Name.isCompound(value) ) return invokeLocalMethod( interpreter, args, callstack, callerInfo );
if ( evalBaseObject == null && !isCompound(evalName) && !forceClass ) { Object obj = resolveThisFieldReference( callstack, namespace, interpreter, evalName, false ); if ( !isCompound(evalName) ) { Object obj = namespace.getPropertyValue(varName, interpreter); return completeRound( evalName, FINISHED, obj );
if ( (evalBaseObject == null && !isCompound(evalName) ) && !forceClass ) if ( !isCompound(evalName) ) { return completeRound( evalName, FINISHED, Primitive.VOID ); } else
if ( !Name.isCompound(value) ) return invokeLocalMethod( visitor, args, callerInfo );