MCPcopy Create free account
hub / github.com/beanshell/beanshell / setTypedVariable

Method setTypedVariable

src/bsh/NameSpace.java:620–628  ·  view source on GitHub ↗

@deprecated See #setTypedVariable( String, Class, Object, Modifiers )

(
		String	name, Class type, Object value,	boolean	isFinal )

Source from the content-addressed store, hash-verified

618 @deprecated See #setTypedVariable( String, Class, Object, Modifiers )
619 */
620 public void setTypedVariable(
621 String name, Class type, Object value, boolean isFinal )
622 throws UtilEvalError
623 {
624 Modifiers modifiers = new Modifiers();
625 if ( isFinal )
626 modifiers.addModifier( Modifiers.FIELD, "final" );
627 setTypedVariable( name, type, value, modifiers );
628 }
629
630 /**
631 Declare a variable in the local scope and set its initial value.

Callers 5

getConstructorArgsMethod · 0.95
invokeImplMethod · 0.95
evalMethod · 0.95
evalMethod · 0.45
evalMethod · 0.45

Calls 7

addModifierMethod · 0.95
ensureVariablesMethod · 0.95
getVariableImplMethod · 0.95
getTypeMethod · 0.95
setValueMethod · 0.95
createVariableMethod · 0.95
putMethod · 0.65

Tested by

no test coverage detected