ReflectionUDF Library

Functions25 public, 0 private

Returns if the specififed Java class exists.
publicbooleanclassExists
Fully qualified name of the Java class.
requiredstringclass
Compares the provided objects with each other. Returns if they are considered to be equal.
publicbooleancompareObjects
requiredanyobjA
requiredanyobjB
Inspects the provided value and attempts to evaluate its content. IMPORTANT NOTICE: This function can only resolve variables in a shared scope such as REQUEST or APPLICATION.
publicstringevaluateValue
requiredanyvalue
Returns the current call stack.
publicquerygetCallStack
Extracts the first comment in the provided string.
publicstructgetCFcomment
requiredstringvalue
Returns the inheritance of the provided object.
publicarraygetClassHierarchy
The object to inspect.
requiredanyobject
Reverses the hierarchic order starting with the base class.
booleanreverseOrderfalse
publicstringgetClassName
requiredanyobject
Returns the main version of the current ColdFusion server instance.
publicnumericgetColdFusionVersion
Returns the application specific mapping.
publicstringgetMapping
Path of the mapping.
requiredstringmapping
Path of append to the mapping, taking care of the proper join.
stringappendPath
publicstringgetServerAddress
publicstringgetServerName
Returns the current stack trace.
publicquerygetStackTrace
Returns if the provided object offers the specified method.
publicanyhasMethod
Object to inspect. Can be either a ColdFusion component or a Java class.
requiredanyobject
Name of the method to look for.
requiredstringmethod
Returns if the current environment is hosted on an Adobe ColdFusion Server.
publicbooleanisAdobeColdFusion
Returns if the provided array contains the specified component and the specified component only. An empty array returns true.
publicbooleanisArrayOfComponent
requiredanyvalue
Class or Interface to look for in the provided array.
requiredstringtarget
Validate all array elements.
booleanfullscanfalse
Inspects the provided object and returns if the specified class is in its hierarchy.
publicbooleanisClass
requiredanyvalue
requiredstringclass
Inspects the provided object and tries to identify the component by name or location.
publicbooleanisComponent
requiredanyobject
Class(es) or Interface(s) to look for in the provided object.
requiredstring, string[]target
Private argument to call this function recursively.
booleanreflecttrue
publicbooleanisColdFusionArray
requiredanytarget
publicbooleanisColdFusionStruct
requiredanytarget
publicbooleanisAnyEmpty
requiredanyvalue
publicbooleanisEmpty
requiredanyvalue
publicbooleanisJavaArray
requiredanytarget
publicbooleanisJavaStruct
requiredanytarget
Returns if the current environment is hosted on a Lucee Server.
publicbooleanisLucee
Returns if the current environment is hosted on a Railo Server.
publicbooleanisRailo