org.eclipse.xtend.backend.types
Class AbstractProperty

java.lang.Object
  extended by org.eclipse.xtend.backend.types.AbstractProperty
All Implemented Interfaces:
Property
Direct Known Subclasses:
BuiltinProperty, JavaBeansProperty

public abstract class AbstractProperty
extends java.lang.Object
implements Property

Author:
Arno Haase (http://www.haase-consulting.com)

Field Summary
protected  JavaBuiltinConverter _converter
           
protected  boolean _isReadable
           
protected  boolean _isWritable
           
protected  java.lang.String _name
           
protected  BackendType _owner
           
 
Constructor Summary
AbstractProperty(BackendType owner, java.lang.Class<?> javaType, java.lang.String name, boolean isReadable, boolean isWritable)
           
 
Method Summary
 java.lang.Object get(ExecutionContext ctx, java.lang.Object o)
           
 java.lang.String getName()
           
 BackendType getOwner()
           
protected abstract  java.lang.Object getRaw(ExecutionContext ctx, java.lang.Object o)
           
 boolean isReadable()
           
 boolean isWritable()
           
 void set(ExecutionContext ctx, java.lang.Object o, java.lang.Object newValue)
           
 void setRaw(ExecutionContext ctx, java.lang.Object o, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtend.backend.common.Property
getType
 

Field Detail

_owner

protected final BackendType _owner

_name

protected final java.lang.String _name

_isReadable

protected final boolean _isReadable

_isWritable

protected final boolean _isWritable

_converter

protected final JavaBuiltinConverter _converter
Constructor Detail

AbstractProperty

public AbstractProperty(BackendType owner,
                        java.lang.Class<?> javaType,
                        java.lang.String name,
                        boolean isReadable,
                        boolean isWritable)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Property

getOwner

public BackendType getOwner()
Specified by:
getOwner in interface Property

get

public final java.lang.Object get(ExecutionContext ctx,
                                  java.lang.Object o)
Specified by:
get in interface Property

set

public final void set(ExecutionContext ctx,
                      java.lang.Object o,
                      java.lang.Object newValue)
Specified by:
set in interface Property

getRaw

protected abstract java.lang.Object getRaw(ExecutionContext ctx,
                                           java.lang.Object o)

setRaw

public void setRaw(ExecutionContext ctx,
                   java.lang.Object o,
                   java.lang.Object newValue)

isReadable

public boolean isReadable()
Specified by:
isReadable in interface Property

isWritable

public boolean isWritable()
Specified by:
isWritable in interface Property