public final class ClassConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassConfiguration.PropertyInfo
Class used to contain the property information if the property is readable, writable and the
methods that implement the get and set functions.
|
| Constructor and Description |
|---|
ClassConfiguration(Class<? extends SimpleScriptable> hostClass,
Class<?>[] domClasses,
boolean jsObject,
boolean definedInStandardsMode,
String className)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConstant(String name)
Add the constant to the configuration.
|
void |
addFunction(Method method)
Add the function to the configuration.
|
void |
addProperty(String name,
Method getter,
Method setter)
Add the property to the configuration.
|
void |
addStaticFunction(Method method)
Add the static function to the configuration.
|
void |
addStaticProperty(String name,
Method getter,
Method setter)
Add the static property to the configuration.
|
String |
getClassName()
Returns the class name.
|
List<String> |
getConstants()
Returns the constant list.
|
Class<?>[] |
getDomClasses()
Returns the DOM classes.
|
String |
getExtendedClassName() |
Set<Map.Entry<String,Method>> |
getFunctionEntries()
Returns the set of entries for the defined functions.
|
Set<String> |
getFunctionKeys()
Returns the set of keys for the defined functions.
|
Class<? extends SimpleScriptable> |
getHostClass()
Gets the class of the JavaScript host object.
|
Member |
getJsConstructor()
Gets the JavaScript constructor method in
getHostClass(). |
Set<Map.Entry<String,ClassConfiguration.PropertyInfo>> |
getPropertyEntries()
Returns the set of entries for the defined properties.
|
Set<Map.Entry<String,Method>> |
getStaticFunctionEntries()
Returns the set of entries for the defined static functions.
|
Set<Map.Entry<String,ClassConfiguration.PropertyInfo>> |
getStaticPropertyEntries()
Returns the set of entries for the defined static properties.
|
boolean |
isDefinedInStandardsMode()
Returns whether the class should be defined in only Standards Mode.
|
boolean |
isJsObject() |
public ClassConfiguration(Class<? extends SimpleScriptable> hostClass, Class<?>[] domClasses, boolean jsObject, boolean definedInStandardsMode, String className)
hostClass - - the class implementing this functionalitydomClasses - the DOM classes that this object supportsjsObject - boolean flag for if this object is a JavaScript objectdefinedInStandardsMode - should be defined in only Standards ModeclassName - the class name, can be nullpublic void addProperty(String name, Method getter, Method setter)
name - name of the propertygetter - the getter methodsetter - the setter methodpublic void addStaticProperty(String name, Method getter, Method setter)
name - name of the static propertygetter - the static getter methodsetter - the static setter methodpublic void addConstant(String name)
name - - Name of the configurationpublic Set<Map.Entry<String,ClassConfiguration.PropertyInfo>> getPropertyEntries()
public Set<Map.Entry<String,ClassConfiguration.PropertyInfo>> getStaticPropertyEntries()
public Set<Map.Entry<String,Method>> getFunctionEntries()
public Set<Map.Entry<String,Method>> getStaticFunctionEntries()
public Set<String> getFunctionKeys()
public void addFunction(Method method)
method - the methodpublic void addStaticFunction(Method method)
method - the methodpublic String getExtendedClassName()
public Class<? extends SimpleScriptable> getHostClass()
public Member getJsConstructor()
getHostClass().getHostClass()public Class<?>[] getDomClasses()
public boolean isJsObject()
public boolean isDefinedInStandardsMode()
public String getClassName()
Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.