public abstract class AbstractUnit extends AbstractStatementBlock implements Unit, Comparable<AbstractUnit>
Constructor and Description |
---|
AbstractUnit(String name,
StatementBlock parent,
ParserErrorsImpl errors,
org.jamon.api.Location location) |
addStatement, doesIO, getLocation, getParent, getStatements, printStatements
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatement, getParent
public AbstractUnit(String name, StatementBlock parent, ParserErrorsImpl errors, org.jamon.api.Location location)
public final Unit getParentUnit()
getParentUnit
in interface StatementBlock
getParentUnit
in class AbstractStatementBlock
protected final ParserErrorsImpl getErrors()
public int compareTo(AbstractUnit o)
compareTo
in interface Comparable<AbstractUnit>
protected abstract void addFragmentArg(FragmentArgument arg)
public abstract List<FragmentArgument> getFragmentArgs()
getFragmentArgs
in interface Unit
public FragmentUnit getFragmentUnitIntf(String path)
getFragmentUnitIntf
in interface StatementBlock
getFragmentUnitIntf
in class AbstractStatementBlock
public void generateRenderBody(CodeWriter writer, TemplateDescriber describer) throws ParserErrorImpl
generateRenderBody
in interface Unit
ParserErrorImpl
public abstract void addRequiredArg(RequiredArgument arg)
public abstract void addOptionalArg(OptionalArgument arg)
public abstract List<RequiredArgument> getSignatureRequiredArgs()
getSignatureRequiredArgs
in interface Unit
public abstract Collection<OptionalArgument> getSignatureOptionalArgs()
getSignatureOptionalArgs
in interface Unit
public abstract Collection<AbstractArgument> getVisibleArgs()
public FragmentUnit addFragment(FragmentArgsNode node, GenericParams genericParams)
addFragment
in interface StatementBlock
addFragment
in class AbstractStatementBlock
public void addRequiredArg(ArgNode node)
addRequiredArg
in interface StatementBlock
addRequiredArg
in class AbstractStatementBlock
public void addOptionalArg(OptionalArgNode node)
addOptionalArg
in interface StatementBlock
addOptionalArg
in class AbstractStatementBlock
protected void addArgName(AbstractArgument arg)
public List<AbstractArgument> getRenderArgs()
public void printRenderArgsDecl(CodeWriter writer)
printRenderArgsDecl
in interface Unit
public void printRenderArgs(CodeWriter writer)
protected static void printArgsDecl(CodeWriter writer, Iterable<? extends AbstractArgument> i)
protected static void printArgs(CodeWriter writer, Iterable<? extends AbstractArgument> args)
protected void generateInterfaceSummary(StringBuilder buf)
Copyright © 2003–2017 Jamon developers. All rights reserved.