- java.lang.Object
-
- swim.dynamic.AbstractHostType<T>
-
- swim.dynamic.AbstractHostObjectType<T>
-
- swim.dynamic.JavaHostObjectType<T>
-
- All Implemented Interfaces:
HostObjectType<T>
,HostType<T>
- Direct Known Subclasses:
JavaHostBuiltinType
,JavaHostClassType
public class JavaHostObjectType<T> extends AbstractHostObjectType<T>
-
-
Constructor Summary
Constructors Constructor Description JavaHostObjectType(Class<?> hostClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMember(HostMember<? super T> member)
void
addStaticMember(HostStaticMember staticMember)
List<HostType<? super T>>
baseTypes()
void
extendType(HostType<?> superType)
HostMember<? super T>
getOwnMember(Bridge bridge, T self, String key)
HostStaticMember
getOwnStaticMember(Bridge bridge, String key)
Class<?>
hostClass()
void
inheritType(HostType<?> superType)
Collection<HostMember<? super T>>
ownMembers(Bridge bridge, T self)
Collection<HostStaticMember>
ownStaticMembers(Bridge bridge)
HostType<? super T>
superType()
-
Methods inherited from class swim.dynamic.AbstractHostObjectType
getMember, members
-
Methods inherited from class swim.dynamic.AbstractHostType
getStaticMember, inheritsType, isBuiltin, staticMembers, typeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.dynamic.HostType
getStaticMember, inheritsType, isBuiltin, staticMembers, typeName
-
-
-
-
Field Detail
-
hostClass
protected final Class<?> hostClass
-
-
Constructor Detail
-
JavaHostObjectType
public JavaHostObjectType(Class<?> hostClass)
-
-
Method Detail
-
hostClass
public final Class<?> hostClass()
-
getOwnMember
public final HostMember<? super T> getOwnMember(Bridge bridge, T self, String key)
- Specified by:
getOwnMember
in interfaceHostObjectType<T>
- Specified by:
getOwnMember
in classAbstractHostObjectType<T>
-
ownMembers
public final Collection<HostMember<? super T>> ownMembers(Bridge bridge, T self)
- Specified by:
ownMembers
in interfaceHostObjectType<T>
- Specified by:
ownMembers
in classAbstractHostObjectType<T>
-
getOwnStaticMember
public final HostStaticMember getOwnStaticMember(Bridge bridge, String key)
- Specified by:
getOwnStaticMember
in interfaceHostType<T>
- Specified by:
getOwnStaticMember
in classAbstractHostType<T>
-
ownStaticMembers
public final Collection<HostStaticMember> ownStaticMembers(Bridge bridge)
- Specified by:
ownStaticMembers
in interfaceHostType<T>
- Specified by:
ownStaticMembers
in classAbstractHostType<T>
-
extendType
public void extendType(HostType<?> superType)
-
inheritType
public void inheritType(HostType<?> superType)
-
addMember
public void addMember(HostMember<? super T> member)
-
addStaticMember
public void addStaticMember(HostStaticMember staticMember)
-
-