org.eclipse.xtext.xbase.typesystem.util
Enum BoundTypeArgumentSource

java.lang.Object
  extended by java.lang.Enum<BoundTypeArgumentSource>
      extended by org.eclipse.xtext.xbase.typesystem.util.BoundTypeArgumentSource
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BoundTypeArgumentSource>

public enum BoundTypeArgumentSource
extends java.lang.Enum<BoundTypeArgumentSource>

Author:
Sebastian Zarnekow - Initial contribution and API TODO JavaDoc

Enum Constant Summary
CONSTRAINT
           public void method() { this.method(); }
EXPECTATION
           public T method() { String s = method(); }
EXPLICIT
           public void method(List list) { List someList = ..
INFERRED
           public void method(List list) { List someList = ..
INFERRED_CONSTRAINT
           CharIterable extends Iterable {} public void method(CharIterable) { this.method(); }
INFERRED_LATER
           public List createList(T...
 
Method Summary
static BoundTypeArgumentSource valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BoundTypeArgumentSource[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXPLICIT

public static final BoundTypeArgumentSource EXPLICIT
  public  void method(List list) {
    List someList = ..
    this.method(someList);
  }
 


CONSTRAINT

public static final BoundTypeArgumentSource CONSTRAINT
  public  void method() {
    this.method();
  }
 


INFERRED_CONSTRAINT

public static final BoundTypeArgumentSource INFERRED_CONSTRAINT
  CharIterable extends Iterable {}
  public  void method(CharIterable) {
    this.method();
  }
 


INFERRED_LATER

public static final BoundTypeArgumentSource INFERRED_LATER
    public  List createList(T... elements) {}
    
    val list = createList() // list
    list.add('string') // bind T to String
 


EXPECTATION

public static final BoundTypeArgumentSource EXPECTATION
  public  T method() {
    String s = method();
  }
 


INFERRED

public static final BoundTypeArgumentSource INFERRED
  public  void method(List list) {
    List someList = ..
    this.method(someList);
  }
 

Method Detail

values

public static final BoundTypeArgumentSource[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(BoundTypeArgumentSource c : BoundTypeArgumentSource.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static BoundTypeArgumentSource valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name