Class DecoratedName
java.lang.Object
org.ek9lang.compiler.support.DecoratedName
- All Implemented Interfaces:
Function<InternalNameDetails,
String>
Useful function that generates the decorated/internal name for generic types that have been
parameterized. Uses a mix of fully qualified and basic names and then a hashing function.
Note that this also has a 'main' entry point so that it can be used by developers when looking to create parameterised generic types.
So it can be run from the Java command line as follows (from the project root):
java -cp ./compiler-main/target/classes org.ek9lang.compiler.support.DecoratedName List org.ek9.lang::List org.ek9.lang::String # Response will be _List_8F118296CF271EAEB58F9D4B4FDDDB2DA7B80C13BF342D8C4A916D54EBB208E1
-
Constructor Details
-
DecoratedName
public DecoratedName()
-
-
Method Details
-
main
-
apply
- Specified by:
apply
in interfaceFunction<InternalNameDetails,
String>
-