|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.parser.ComponentTemplateImpl
public class ComponentTemplateImpl
| Constructor Summary | |
|---|---|
ComponentTemplateImpl(Resource resource,
List<TemplateToken> tokens,
Map<String,Location> componentIds,
boolean extension,
Map<String,List<TemplateToken>> overrides)
|
|
| Method Summary | |
|---|---|
Map<String,Location> |
getComponentIds()
Identifies StartComponentTokens with a non-blank id, mapping the
id to its location (within the template). |
List<TemplateToken> |
getExtensionPointTokens(String extensionPointId)
Returns a list of tokens associated with an extension point, or null if this template neither defines the extension point nor overrides it. |
Resource |
getResource()
Returns the resource that was parsed to form the template. |
List<TemplateToken> |
getTokens()
Returns a list of tokens that were parsed from the template. |
boolean |
isExtension()
Returns true if this component template is an extension of its parent class' template. |
boolean |
isMissing()
Returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentTemplateImpl(Resource resource,
List<TemplateToken> tokens,
Map<String,Location> componentIds,
boolean extension,
Map<String,List<TemplateToken>> overrides)
resource - the resource from which the template was parsedtokens - the tokens of the template, a copy of this list will be madecomponentIds - ids of components defined in the templateextension - overrides - id to list of tokens for that override| Method Detail |
|---|
public Resource getResource()
ComponentTemplate
getResource in interface ComponentTemplatepublic List<TemplateToken> getTokens()
ComponentTemplate
getTokens in interface ComponentTemplatepublic Map<String,Location> getComponentIds()
ComponentTemplateStartComponentTokens with a non-blank id, mapping the
id to its location (within the template). This is used to report unmatched ids (where the component, or its
super-classes, do not define an embedded component).
getComponentIds in interface ComponentTemplate(used to define an embedded component)public boolean isMissing()
isMissing in interface ComponentTemplatepublic List<TemplateToken> getExtensionPointTokens(String extensionPointId)
ComponentTemplate
getExtensionPointTokens in interface ComponentTemplatepublic boolean isExtension()
ComponentTemplate
isExtension in interface ComponentTemplate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||