java.lang.Object
org.bzdev.lang.DMethodParameters
Configuration parameters for dynamic methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default value for the cache limit. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Get the default limit for a helper's cache size.static Appendable
Get the output to use for tracing when method tracing is enabled.static void
setDefaultCacheLimit
(int value) Set the default limit for a helper's cache size.static void
Set the output to use for tracing when method tracing is enabled.
-
Field Details
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMITThe default value for the cache limit. This value will be used unless changed by callingsetDefaultCacheLimit
.- See Also:
-
-
Constructor Details
-
DMethodParameters
public DMethodParameters()
-
-
Method Details
-
setTracingOutput
Set the output to use for tracing when method tracing is enabled. The default is System.out.- Parameters:
out
- the appendable to use for the output
-
getTracingOutput
Get the output to use for tracing when method tracing is enabled. The default is System.out.- Returns:
- the appendable to use for tracing
-
setDefaultCacheLimit
public static void setDefaultCacheLimit(int value) Set the default limit for a helper's cache size. The limit is read when a helper class is initialized.- Parameters:
value
- a positive integer giving the limit; 0 to use the default value (DEFAULT_LIMIT)- See Also:
-
getDefaultCacheLimit
public static int getDefaultCacheLimit()Get the default limit for a helper's cache size.- Returns:
- the default limit
-