org.eclipse.xtend.backend.syslib
Class ReflectionOperations
java.lang.Object
org.eclipse.xtend.middleend.javaannotations.AbstractExecutionContextAware
org.eclipse.xtend.backend.syslib.ReflectionOperations
- All Implemented Interfaces:
- ExecutionContextAware
public final class ReflectionOperations
- extends AbstractExecutionContextAware
This class provides the built-in operations for the Xtend reflection layer
- Author:
- Arno Haase (http://www.haase-consulting.com), André Arnold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionOperations
public ReflectionOperations()
newInstance
public java.lang.Object newInstance(BackendType t)
isInstance
public boolean isInstance(BackendType t,
java.lang.Object o)
isAssignableFrom
public boolean isAssignableFrom(BackendType t1,
BackendType t2)
getProperty
public Property getProperty(BackendType t,
java.lang.String name)
getStaticProperty
public StaticProperty getStaticProperty(BackendType t,
java.lang.String name)
getOperation
public Function getOperation(BackendType t,
QualifiedName name,
java.util.List<BackendType> paramTypes)
getOperationParamNames
public java.util.List<java.lang.String> getOperationParamNames(Function f)
getOperationParamNames
public java.util.List<java.lang.String> getOperationParamNames(SourceDefinedFunction f)
get
public java.lang.Object get(Property p,
java.lang.Object o)
set
public void set(Property p,
java.lang.Object o,
java.lang.Object value)
get
public java.lang.Object get(StaticProperty p)