MCPcopy Create free account
hub / github.com/GateNLP/gate-core / calculateDefaultValue

Method calculateDefaultValue

src/main/java/gate/creole/Parameter.java:112–121  ·  view source on GitHub ↗

Calculate and return the default value for this parameter

()

Source from the content-addressed store, hash-verified

110
111 /** Calculate and return the default value for this parameter */
112 public Object calculateDefaultValue() throws ParameterException {
113 // if there's no default string and this is a builtin type, return null
114 if(
115 defaultValueString == null && typeName != null &&
116 typeName.startsWith("java.")
117 )
118 return null;
119
120 return calculateValueFromString(defaultValueString);
121 } // calculateDefaultValue()
122
123 /** Calculate and return the value for this parameter starting from a String
124 */

Callers 5

testParametersMethod · 0.95
getDefaultValueMethod · 0.95
getDefaultsMethod · 0.95

Calls 1

Tested by 3

testParametersMethod · 0.76