org.eclipse.xtend.backend.common
Class Helpers

java.lang.Object
  extended by org.eclipse.xtend.backend.common.Helpers

public class Helpers
extends java.lang.Object

This class contains commonly used helper operations.

Author:
Arno Haase (http://www.haase-consulting.com), André Arnold

Field Summary
static QualifiedName EQUALS_NAME
           
static QualifiedName TO_STRING_METHOD_NAME
           
 
Constructor Summary
Helpers()
           
 
Method Summary
static boolean nullSafeEquals(ExecutionContext ctx, java.lang.Object o1, java.lang.Object o2)
           
static java.lang.CharSequence overridableToString(ExecutionContext ctx, java.lang.Object o)
          This method is public static so as to be available as a helper method for all code that needs to call "toString".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TO_STRING_METHOD_NAME

public static QualifiedName TO_STRING_METHOD_NAME

EQUALS_NAME

public static QualifiedName EQUALS_NAME
Constructor Detail

Helpers

public Helpers()
Method Detail

overridableToString

public static java.lang.CharSequence overridableToString(ExecutionContext ctx,
                                                         java.lang.Object o)
This method is public static so as to be available as a helper method for all code that needs to call "toString". It calls "toString" on an object, taking into account all potential overriding extensions.


nullSafeEquals

public static boolean nullSafeEquals(ExecutionContext ctx,
                                     java.lang.Object o1,
                                     java.lang.Object o2)