Class SpecialFormsUtil
java.lang.Object
io.github.hglabplh_tech.reflect.clojure.api.utils.SpecialFormsUtil
This s a utility class for the types enum, records and 'lambda'
-
Method Summary
Modifier and TypeMethodDescriptionstatic clojure.lang.IPersistentMapgetEnumSpec(Class<?> theClass) This method analyzes the structure and attributes and constants of a enum and returns it as a mapstatic clojure.lang.IPersistentMapgetGeneralLambdaExprSpec(Class<?> theFunction) This method analyzes a 'lambda' and returns the attributes and the specification !!!EXPERIMENTAL UP TO NOW!!!static clojure.lang.IPersistentMapgetRecordSpec(Class<?> thePotentialRecordClass) This method analyzes the structure and attributes and constants of a record and returns it as a map
-
Method Details
-
getEnumSpec
This method analyzes the structure and attributes and constants of a enum and returns it as a map- Parameters:
theClass- the class (it is checked to be an enum class)- Returns:
- the enum specification
-
getRecordSpec
This method analyzes the structure and attributes and constants of a record and returns it as a map- Parameters:
thePotentialRecordClass- the class of the record- Returns:
- the record specification
-
getGeneralLambdaExprSpec
This method analyzes a 'lambda' and returns the attributes and the specification !!!EXPERIMENTAL UP TO NOW!!!- Parameters:
theFunction- the object (it is checked to be a 'lambda')- Returns:
- the lambda expression specification
-