Class RenderingUtil
- java.lang.Object
-
- org.teavm.backend.javascript.rendering.RenderingUtil
-
public final class RenderingUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>KEYWORDSstatic StringVARIABLE_PART_CHARSstatic StringVARIABLE_START_CHARS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringescapeName(String name)static StringescapeString(String str)static StringindexToId(int index)static StringindexToId(int index, String startChars)static booleanisSmallInteger(Expr expr)static voidwriteString(SourceWriter writer, String s)
-
-
-
Field Detail
-
VARIABLE_START_CHARS
public static final String VARIABLE_START_CHARS
- See Also:
- Constant Field Values
-
VARIABLE_PART_CHARS
public static final String VARIABLE_PART_CHARS
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeString
public static void writeString(SourceWriter writer, String s) throws IOException
- Throws:
IOException
-
indexToId
public static String indexToId(int index)
-
isSmallInteger
public static boolean isSmallInteger(Expr expr)
-
-