Class JVMNames
java.lang.Object
org.checkerframework.afu.scenelib.util.JVMNames
Class to generate class formatted names from Trees.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getJVMMethodName
(MethodTree methodTree) Deprecated.static String
getJVMMethodName
(ExecutableElement methodElement) Deprecated.static String
getJVMMethodSignature
(MethodTree methodTree) Converts a MethodTree into a JVML format method signature.static String
getJVMMethodSignature
(ExecutableElement methodElement) Converts a method element into a JVML format method signature.static String
Converts a type in JVM format to a type in Java format.static String
typeToJvmlString
(com.sun.tools.javac.code.Type type) Create a JVML string for a type.
-
Constructor Details
-
JVMNames
public JVMNames()Creates a new JVMNames.
-
-
Method Details
-
getJVMMethodName
@Deprecated @InlineMe(replacement="JVMNames.getJVMMethodSignature(methodTree)", imports="org.checkerframework.afu.scenelib.util.JVMNames") public static String getJVMMethodName(MethodTree methodTree) Deprecated.Converts a MethodTree into a JVML format method signature. There is probably an API to do this, but I couldn't find it.- Parameters:
methodTree
- the tree to convert- Returns:
- a String signature of methodTree in jvml format
-
getJVMMethodSignature
Converts a MethodTree into a JVML format method signature. There is probably an API to do this, but I couldn't find it.- Parameters:
methodTree
- the tree to convert- Returns:
- a String signature of methodTree in JVML format
-
getJVMMethodName
@Deprecated @InlineMe(replacement="JVMNames.getJVMMethodSignature(methodElement)", imports="org.checkerframework.afu.scenelib.util.JVMNames") public static String getJVMMethodName(ExecutableElement methodElement) Deprecated.Converts a method element into a JVML format method signature. There is probably an API to do this, but I couldn't find it.- Parameters:
methodElement
- the method element to convert- Returns:
- a String signature of methodElement in JVML format
-
getJVMMethodSignature
Converts a method element into a JVML format method signature. There is probably an API to do this, but I couldn't find it.- Parameters:
methodElement
- the method element to convert- Returns:
- a String signature of methodElement in JVML format
-
typeToJvmlString
Create a JVML string for a type.- Parameters:
type
- the Type to convert to JVML- Returns:
- the JVML representation of type
-
jvmlStringToJavaTypeString
Converts a type in JVM format to a type in Java format.- Parameters:
jvmType
- a type in JVM format- Returns:
- the type, in Java format
-
getJVMMethodSignature(MethodTree)