All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----lib.Util
public Util()
public static String toJVMName(String s)
my.Class.data
-> my/Class/data
public static String toJVMClassName(String s)
my.brandnew.Class
-> Lmy/brandnew/Class;
public static String toJVMType(Node n, Node dim)
T_VOID
-> V
T_INT
-> I
its.my.Class
-> Lits/my/Class;
If n
is not null
and not of type
T_DUMMY
, the string is generated using toJVMArrayType.
- Parameters:
- n - reference to a node of type
T_VOID
,
T_INT
, or T_STRING
- dim - if not
null
or of type T_DUMMY
, then
is must reference a list of T_DIMENSION
.
- Returns:
- a string describing the specified type in Jasmin/JVM syntax
public static String toJVMArglistType(Node n)
T_VARSPEC
public static Node getClass(Node n)
Node
object of type
T_CLASS
, the given node is contained in.
public static String getClassName(Node n)
public static Node getMethod(Node n)
Node
object of type
T_METHDEC
, the given node is contained in.
All Packages Class Hierarchy This Package Previous Next Index