Class CompiletimeModel

  extended by
All Implemented Interfaces:
Direct Known Subclasses:
PropertyCompiletime, PropertyCompiletimeModel

public abstract class CompiletimeModel
extends java.lang.Object
implements CompiletimeModel

Nested Class Summary
 class CompiletimeModel.PropertyImpl
Nested classes/interfaces inherited from interface
Constructor Summary
CompiletimeModel(java.lang.String runtimeConstant)
Method Summary
 CompiletimeModel.Property getDirectProperty(Type<?> type, java.lang.String name)
          Returns a direct property.
protected  CompiletimeModel.PropertyImpl getDirectProperty(Type<?> type, java.lang.String name, java.lang.String id)
 java.lang.String getRuntimeName()
          Defines the name of the corresponding RuntimeModel.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public CompiletimeModel(java.lang.String runtimeConstant)
Method Detail


public CompiletimeModel.Property getDirectProperty(Type<?> type,
                                                   java.lang.String name)
Description copied from interface: CompiletimeModel
Returns a direct property. This method returns the direct property named fieldName declared in type. If no such property exists, null is returned.

Specified by:
getDirectProperty in interface CompiletimeModel
type - the type in which the property is declared
name - the name of the property
the direct property, if any


protected CompiletimeModel.PropertyImpl getDirectProperty(Type<?> type,
                                                          java.lang.String name,
                                                          java.lang.String id)


public java.lang.String getRuntimeName()
Description copied from interface: CompiletimeModel
Defines the name of the corresponding RuntimeModel. This name is used during run-time in invocations of RuntimeModelFactory.modelForName(java.lang.String, java.lang.ClassLoader) in order to obtain the RuntimeModel suitable for the code that is compiled within this compile-time model.

Specified by:
getRuntimeName in interface CompiletimeModel
the name of the corresponding run-time model