public class FragmentUnit extends AbstractInnerUnit
Constructor and Description |
---|
FragmentUnit(String name,
StatementBlock parent,
GenericParams genericParams,
ParserErrorsImpl errors,
org.jamon.api.Location location) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFragmentArg(FragmentArgument arg) |
void |
addOptionalArg(OptionalArgNode node) |
void |
addOptionalArg(OptionalArgument arg) |
void |
generateThrowsIOExceptionIfNecessary(CodeWriter writer) |
String |
getFragmentInterfaceName(boolean makeGeneric) |
FragmentUnit |
getFragmentUnitIntf(String path) |
void |
printInterface(CodeWriter writer,
String interfaceModifiers,
boolean isCopy) |
addRequiredArg, getDeclaredRequiredArgs, getFragmentArgs, getOptionalArgs, getOptionalArgsSet, getRenderArgs, getRequiredArgs, getSignatureOptionalArgs, getSignatureRequiredArgs, getVisibleArgs, hasOptionalArgs, hasRequiredArgs
addArgName, addFragment, addRequiredArg, compareTo, generateInterfaceSummary, generateRenderBody, getErrors, getName, getParentUnit, printArgs, printArgsDecl, printRenderArgs, printRenderArgsDecl
addStatement, doesIO, getLocation, getParent, getStatements, printStatements
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatement, getParent
public FragmentUnit(String name, StatementBlock parent, GenericParams genericParams, ParserErrorsImpl errors, org.jamon.api.Location location)
public String getFragmentInterfaceName(boolean makeGeneric)
public void addOptionalArg(OptionalArgNode node)
addOptionalArg
in interface StatementBlock
addOptionalArg
in class AbstractUnit
public void addOptionalArg(OptionalArgument arg)
addOptionalArg
in class AbstractInnerUnit
protected void addFragmentArg(FragmentArgument arg)
addFragmentArg
in class AbstractInnerUnit
public FragmentUnit getFragmentUnitIntf(String path)
getFragmentUnitIntf
in interface StatementBlock
getFragmentUnitIntf
in class AbstractUnit
public void printInterface(CodeWriter writer, String interfaceModifiers, boolean isCopy)
public void generateThrowsIOExceptionIfNecessary(CodeWriter writer)
Copyright © 2003–2017 Jamon developers. All rights reserved.