public class TemplateUnit extends AbstractUnit implements InheritedUnit
Constructor and Description |
---|
TemplateUnit(String path,
ParserErrorsImpl errors) |
addArgName, addFragment, addOptionalArg, addRequiredArg, compareTo, generateRenderBody, getErrors, getFragmentUnitIntf, getName, getParentUnit, getRenderArgs, printArgs, printArgsDecl, printRenderArgs, printRenderArgsDecl
addStatement, doesIO, getLocation, getParent, getStatements, printStatements
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatement, getParent
public TemplateUnit(String path, ParserErrorsImpl errors)
public int getInheritanceDepth()
public void setParentDescription(TemplateDescription parent)
public void addParentArg(ParentArgNode arg)
addParentArg
in interface InheritedUnit
public List<FragmentArgument> getFragmentArgs()
getFragmentArgs
in interface Unit
getFragmentArgs
in class AbstractUnit
public void addFragmentArg(FragmentArgument arg)
addFragmentArg
in class AbstractUnit
public Collection<FragmentArgument> getDeclaredFragmentArgs()
public void addRequiredArg(RequiredArgument arg)
addRequiredArg
in class AbstractUnit
public void addOptionalArg(OptionalArgument arg)
addOptionalArg
in class AbstractUnit
public List<RequiredArgument> getSignatureRequiredArgs()
getSignatureRequiredArgs
in interface Unit
getSignatureRequiredArgs
in class AbstractUnit
public Collection<OptionalArgument> getSignatureOptionalArgs()
getSignatureOptionalArgs
in interface Unit
getSignatureOptionalArgs
in class AbstractUnit
public String getOptionalArgDefault(OptionalArgument arg)
public Collection<AbstractArgument> getVisibleArgs()
getVisibleArgs
in class AbstractUnit
public Collection<OptionalArgument> getDeclaredOptionalArgs()
public Collection<String> getTemplateDependencies()
public void makeDefUnit(String defName, org.jamon.api.Location location)
public Collection<DefUnit> getDefUnits()
public void makeMethodUnit(String methodName, org.jamon.api.Location location, boolean isAbstract)
public OverriddenMethodUnit makeOverridenMethodUnit(String name, org.jamon.api.Location location)
public MethodUnit getMethodUnit(String name)
public Collection<MethodUnit> getSignatureMethodUnits()
public Collection<MethodUnit> getDeclaredMethodUnits()
public Collection<MethodUnit> getImplementedMethodUnits()
public Collection<String> getAbstractMethodNames()
public void addStaticImport(StaticImportNode node)
public void addImport(ImportNode node)
public void addInterface(String interfase)
public void setParentPath(String parentPath)
public String getParentPath()
public boolean hasParentPath()
public void setReplacedTemplatePathAndDescription(String replacedTemplatePath, TemplateDescription templateDescription)
replacedTemplatePath
- the path of the template which this template replacedtemplateDescription
- the description of the replaced templatepublic String getReplacedTemplatePath()
public TemplateDescription getReplacedTemplateDescription()
public boolean isReplacing()
<%replacesTemplate ...>
tag.true
if this template replaces another template.public void setReplaceable(boolean replaceable)
replaceable
- whether this template can be replaced by another one.public boolean isReplaceable()
public String getProxyParentClass()
public boolean isParent()
public void setIsParent()
public void printClassContent(CodeWriter writer)
public void addClassContent(ClassNode node)
public void addCallPath(String callPath)
public Collection<RequiredArgument> getParentRenderArgs()
public void printImports(CodeWriter writer)
public void printParentRenderArgs(CodeWriter writer)
public void printParentRenderArgsDecl(CodeWriter writer)
public Collection<? extends RequiredArgument> getDeclaredRenderArgs()
public Collection<AbstractArgument> getDeclaredArgs()
public void printDeclaredRenderArgs(CodeWriter writer)
public void printDeclaredRenderArgsDecl(CodeWriter writer)
public void printInterfaces(CodeWriter writer)
protected void generateInterfaceSummary(StringBuilder buf)
generateInterfaceSummary
in class AbstractUnit
public String getSignature()
public GenericParams getGenericParams()
public void setJamonContextType(String jamonContextType)
public String getJamonContextType()
public boolean isOriginatingJamonContext()
public void addGenericsParamNode(GenericsParamNode node)
public void addAnnotationNode(AnnotationNode node)
public Iterable<AnnotationNode> getAnnotations()
public void setEncoding(String encoding)
public String getEncoding()
Copyright © 2003–2016 Jamon developers. All rights reserved.