- java.lang.Object
-
- swim.dynamic.AbstractHostType<T>
-
- swim.dynamic.AbstractHostObjectType<T>
-
- swim.dynamic.PolyglotHostObjectType<T>
-
- All Implemented Interfaces:
HostObjectType<T>
,HostType<T>
public class PolyglotHostObjectType<T> extends AbstractHostObjectType<T>
A dynamic object type descriptor that has specialized members for specific guest languages.
-
-
Constructor Summary
Constructors Constructor Description PolyglotHostObjectType(Class<?> hostClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMember(HostMember<? super T> member)
void
addSpecializedMember(String language, HostMember<? super T> member)
void
addSpecializedStaticMember(String language, HostStaticMember staticMember)
void
addStaticMember(HostStaticMember staticMember)
void
addUnspecializedMember(HostMember<? super T> member)
void
addUnspecializedStaticMember(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)
boolean
isBuiltin()
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, 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, staticMembers, typeName
-
-
-
-
Field Detail
-
hostClass
protected final Class<?> hostClass
-
-
Constructor Detail
-
PolyglotHostObjectType
public PolyglotHostObjectType(Class<?> hostClass)
-
-
Method Detail
-
hostClass
public final Class<?> hostClass()
-
isBuiltin
public boolean isBuiltin()
-
getOwnMember
public HostMember<? super T> getOwnMember(Bridge bridge, T self, String key)
- Specified by:
getOwnMember
in interfaceHostObjectType<T>
- Specified by:
getOwnMember
in classAbstractHostObjectType<T>
-
ownMembers
public Collection<HostMember<? super T>> ownMembers(Bridge bridge, T self)
- Specified by:
ownMembers
in interfaceHostObjectType<T>
- Specified by:
ownMembers
in classAbstractHostObjectType<T>
-
getOwnStaticMember
public HostStaticMember getOwnStaticMember(Bridge bridge, String key)
- Specified by:
getOwnStaticMember
in interfaceHostType<T>
- Specified by:
getOwnStaticMember
in classAbstractHostType<T>
-
ownStaticMembers
public 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)
-
addSpecializedMember
public void addSpecializedMember(String language, HostMember<? super T> member)
-
addSpecializedStaticMember
public void addSpecializedStaticMember(String language, HostStaticMember staticMember)
-
addUnspecializedMember
public void addUnspecializedMember(HostMember<? super T> member)
-
addUnspecializedStaticMember
public void addUnspecializedStaticMember(HostStaticMember staticMember)
-
-