Top Description Fields Constructors Methods
org.codehaus.groovy.tools

public abstract Class Utilities

extends Object
Class Inheritance
Imports
java.util.Arrays, .HashSet, .Set

Various utility functions for use in the compiler.

Field Summary

Modifier and TypeField and Description
private static String
private static final Set<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
eol()

Returns the end-of-line marker.

public static boolean
isJavaIdentifier(String name)

Tells if the given string is a valid Java identifier.

public static String
repeatString(String pattern, int repeats)

Returns a string made up of repetitions of the specified string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eolback to summary
private static String eol
INVALID_JAVA_IDENTIFIERSback to summary
private static final Set<String> INVALID_JAVA_IDENTIFIERS

Constructor Detail

Utilitiesback to summary
public Utilities()

Method Detail

eolback to summary
public static String eol()

Returns the end-of-line marker.

isJavaIdentifierback to summary
public static boolean isJavaIdentifier(String name)

Tells if the given string is a valid Java identifier.

repeatStringback to summary
public static String repeatString(String pattern, int repeats)

Returns a string made up of repetitions of the specified string.