public interface IAssemblyStreamSupport extends FirstUseAssembler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
generateJSPFragment(java.lang.String aSource) |
void |
generateJSPFragment(java.lang.String aSource,
java.lang.StringBuffer aErrors)
For JSP elimination within auto generated controls, need to handle
JSP snippets that might be embedded in labels.
|
void |
getBinaryFileRef(java.lang.StringBuffer aOutput,
java.lang.String aApp,
java.lang.String aFileName)
Emit a reference to a binary file (including its static content hash),
processing runtime references for the application and name fields.
|
void |
getBinaryFileRef(java.lang.StringBuffer aOutput,
java.lang.String aApp,
java.lang.String aFileName,
boolean bKeepCase)
Emit a reference to a binary file (including its static content hash),
processing runtime references for the application and name fields.
|
void |
getBinaryFileRef(java.lang.StringBuffer aOutput,
java.lang.String aApp,
java.lang.String aPrimaryFileName,
java.lang.String aAlternateFileName)
Emit a reference to a binary file (including its static content hash),
processing runtime references for the application and name fields.
|
void |
getBinaryFileRefName(java.lang.StringBuffer aOutput,
java.lang.String aApp,
java.lang.String aFileName)
Return a reference to a binary file (including its static content hash),
processing runtime references for the application and name fields.
|
void |
getBinaryFileRefName(java.lang.StringBuffer aOutput,
java.lang.String aApp,
java.lang.String aPrimaryFileName,
java.lang.String aAlternateFileName)
Return a reference to a binary file (including its static content hash),
processing runtime references for the application and name fields.
|
IControlGenertorUtilities |
getControlGenertorUtilities(ClipboardPage aPyGenJava) |
IControlTemplateGenerator |
getControlTemplateGenerator(ClipboardPage pyGenJava)
Return a reference to ControlTemplateGenerator used for generating templatized controls
|
IControlTemplateGenerator |
getControlTemplateGenerator(ClipboardPage pyGenJava,
java.lang.String uiElement)
Return a reference to ControlTemplateGenerator used for generating templatized controls
|
IGridTemplateMetaDataGenerator |
getGridTemplateMetaDataGenerator(ClipboardPage aPyGenJava,
IUIComponent.ComponentType aType) |
ILayoutGenerator |
getLayoutGenerator(ClipboardPage pyGenJava)
Return a reference to LayoutGeneratorImpl used for generating templatized Layout
|
IStaticContentAssembly |
getStaticAssemblyBlock(java.lang.String aType,
java.lang.StringBuffer aOutput)
Obtain an instance of the static content assembly helper object.
|
IStaticContentAssembly |
getStaticAssemblyBlock(java.lang.String aType,
java.lang.StringBuffer aOutput,
java.lang.String aId)
Obtain an instance of the static content assembly helper object.
|
java.lang.String |
getStreamWhenExpressionCode(ClipboardProperty aPropForMessages,
java.lang.String aExpression)
Returns a string of code to be inserted into an "if" statement that will
evaluate aExpression at runtime.
|
IUIAssembly |
getUIAssembly()
Returns the UI assembly.
|
void |
includeStream(java.lang.String aName,
java.lang.String aInputMode,
java.lang.String aType,
boolean aInline,
java.lang.String aOnlyOnceName)
Emit another stream rule, possibly inlined during assembly.
|
void |
includeStreamRef(java.lang.String aNameRef,
java.lang.String aInputMode,
java.lang.String aType,
java.lang.String aOnlyOnceName)
Emit another stream rule, which will be evaluated at runtime.
|
boolean |
isJSPCompilerNeeded()
Resolves the settings made by setUsesJSP() and setUsesNoJSP() to
determine if the JSP compiler must be invoked for this stream.
|
void |
setUsesJSP()
Call this method to specify that this (or an included stream) uses JSP
directives and therefore must be processed by the JSP compiler.
|
void |
setUsesNoJSP()
Call this method to specify that no JSP tags are used and therefore
processing by the JSP compiler may be bypassed as
part of the GRP-39808 JSP bypass optimization logic.
|
boolean |
validateWhen(ClipboardProperty aPropForMessages,
java.lang.String aExpression)
Validates aExpression for correct syntax (as handled by stream when expressions).
|
boolean |
validateWhen(ClipboardProperty aPropForMessages,
java.lang.String aExpression,
java.lang.String aUseClassName)
Validates aExpression for correct syntax (as handled by stream when expressions).
|
addCode, addCode, addCode, addCode, addErrorMessages, addImport, addKnownPageDescriptor, addMethod, addToSupport, addToSupport, addToSupport, checkModelInstance, checkWhenInstance, createMethod, createMethod, createPageDescriptor, createPageDescriptor, decreaseIndent, decreaseIndent, decreaseIndentAS, decreaseIndentAS, emit, emitAS, emitASconst, emitASconstln, emitAScsf, emitASln, emitASraw, emitCSF, emitCSFln, emitEscaped, emitEscapedln, emitln, focusOnSupport, generateJavaForPropertySet, generateStepPageReference, getBooleanCodeGenerator, getBooleanWithVariableCodeGenerator, getBuilder, getCaller, getClassForPage, getCodeGenerator, getCodeGeneratorInstance, getDatabase, getDefinition, getDictionary, getEditContext, getIdentification, getInThunkGeneration, getJavaBuilder, getJavaForExpression, getJavaForExpression, getJavaName, getJavaTypeForPegaType, getKeys, getLocalParameters, getMethodName, getMethodNameForKey, getPageDescriptor, getParameters, getPrimaryDescriptor, getRuleBasis, getStepPage, getStringCodeGenerator, getStringWithVariableCodeGenerator, getThread, getUniqueID, getWhenChangeDeclarativeReferences, getWillChangeDeclarativeReferences, haveRuleBasis, increaseIndent, increaseIndent, increaseIndentAS, increaseIndentAS, isDeclarativeInvoked, isDeclarativeRule, isEditing, isEmbedded, isMyStepPageChecked, isPrimary, isRuntime, newStringExpression, newStringExpression, newStringExpression, noInlining, noteClassDependence, noteInstanceUsed, noteInstanceUsed, notePropertyUsed, notePropertyUsed, openRule, popStepPage, preprocessExpression, preprocessExpression, pushStepPage, pushStepPage, resetDefaultDefinition, restoreFocus, setCurrentRepeatType, setDeclarativeInvoked, setDeclarativeRule, setIndentContent, setIndentContentAS, setIndentLevel, setIndentLevelAS, setMyStepPageChecked, setOverrideDefinition, setWhenChangeDeclarativeReferences, setWillChangeDeclarativeReferences, summarizeGeneratedMethods, translateCodeBlock, translateExpression, translateExpression, translateExpression
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
void getBinaryFileRef(java.lang.StringBuffer aOutput, java.lang.String aApp, java.lang.String aFileName)
aOutput
- Buffer to which code to emit reference should be written,
if null
then output will be written using assembler.addCode()
.
Note that the output of this method is a full Java statement.aApp
- Application name (e.g. "webwb")aFileName
- Name of binary file - including file type.void getBinaryFileRef(java.lang.StringBuffer aOutput, java.lang.String aApp, java.lang.String aFileName, boolean bKeepCase)
aOutput
- Buffer to which code to emit reference should be written,
if null
then output will be written using assembler.addCode()
.
Note that the output of this method is a full Java statement.aApp
- Application name (e.g. "webwb")aFileName
- Name of binary file - including file type.bKeepCase
- set to true if keep case of the filevoid getBinaryFileRef(java.lang.StringBuffer aOutput, java.lang.String aApp, java.lang.String aPrimaryFileName, java.lang.String aAlternateFileName)
aOutput
- Buffer to which code to emit reference should be written,
if null
then output will be written using assembler.addCode()
.
Note that the output of this method is a full Java statement.aApp
- Application name (e.g. "webwb")aPrimaryFileName
- Name of binary file - including file type.aAlternateFileName
- Alternate name of binary file - including file type.void getBinaryFileRefName(java.lang.StringBuffer aOutput, java.lang.String aApp, java.lang.String aFileName)
aOutput
- Buffer holding the code.
Note that the output of this method is a full Java statement.aApp
- Application name (e.g. "webwb")aFileName
- Name of binary file - including file type.void getBinaryFileRefName(java.lang.StringBuffer aOutput, java.lang.String aApp, java.lang.String aPrimaryFileName, java.lang.String aAlternateFileName)
aOutput
- Buffer holding the code.
Note that the output of this method is a full Java statement.aApp
- Application name (e.g. "webwb")aPrimaryFileName
- Name of binary file - including file type.aAlternateFileName
- Alternate name of binary file - including file type.IControlTemplateGenerator getControlTemplateGenerator(ClipboardPage pyGenJava)
pyGenJava
- ClipboardPage that holds generation information.IControlTemplateGenerator getControlTemplateGenerator(ClipboardPage pyGenJava, java.lang.String uiElement)
pyGenJava
- ClipboardPage that holds generation information.uiElement
- void includeStream(java.lang.String aName, java.lang.String aInputMode, java.lang.String aType, boolean aInline, java.lang.String aOnlyOnceName)
aName
- Name of stream rule to include, must a constant value at assembly time.aInputMode
- "Input", "NoInput" or nullaType
- pxObjClass value, "standard", "Input" or "NoInput"aInline
- false
to force the stream to be evaluated at runtimeaOnlyOnceName
- null
or name controlling output of stream only once
during an interaction. If multiple streams are controlled by the same name, use null
here and if (pzAuto.doOnlyOnce(name)) {multiple-include-stream calls}
to
control output.void includeStreamRef(java.lang.String aNameRef, java.lang.String aInputMode, java.lang.String aType, java.lang.String aOnlyOnceName)
aNameRef
- Name of stream rule to include, may contain references to stream variables.aInputMode
- "Input", "NoInput" or nullaType
- pxObjClass value, "standard", "Input" or "NoInput"aOnlyOnceName
- null
or name controlling output of stream only once
during an interaction. If multiple streams are controlled by the same name, use null
here and if (pzAuto.doOnlyOnce(name)) {multiple-include-stream calls}
to
control output.IStaticContentAssembly getStaticAssemblyBlock(java.lang.String aType, java.lang.StringBuffer aOutput)
aType
- must be "script" or "style"aOutput
- the StringBuffer into which assembled code should be placed,
specify null
to use the current assembly output buffer.IStaticContentAssembly getStaticAssemblyBlock(java.lang.String aType, java.lang.StringBuffer aOutput, java.lang.String aId)
aType
- must be "script" or "style"aOutput
- the StringBuffer into which assembled code should be placed,
specify null
to use the current assembly output buffer.aId
- Specify a unique Java identifier value to be used to construct a run-time variable name
to reference the static assembly block (for example, the OnlyOnce tag associated with
the static block). Use null
to have a value generated. This parameter is
provided for use within separately generated methods where it is easy for the caller to track
an identifier and there is a desire to have identical generated methods consolidated.void setUsesJSP()
void setUsesNoJSP()
boolean isJSPCompilerNeeded()
void generateJSPFragment(java.lang.String aSource, java.lang.StringBuffer aErrors)
aSource
- JSP source to processaErrors
- optional StringBuffer into which any errors will be placedvoid generateJSPFragment(java.lang.String aSource)
boolean validateWhen(ClipboardProperty aPropForMessages, java.lang.String aExpression)
As an example consider this fragment from the R-U-Function
GenerateButton(ClipboardProperty, String, boolean, int, boolean, ClipboardPage).
Old usage:
thisButtonString.append("if(com.pega.pegarules.jsptags.WhenTag.evaluateWhen(pega, \""
+ StringUtils.escapeIntoJavaString(visibleWhen)
+ "\",null, true)) {");
New usage:
assembler.validateWhen(cp_thisButton, visibleWhen);
thisButtonString.append("if("
+ assembler.getStreamWhenExpressionCode(null, visibleWhen)
+ ") {");
aPropForMessages
- aExpression
- boolean validateWhen(ClipboardProperty aPropForMessages, java.lang.String aExpression, java.lang.String aUseClassName)
As an example consider this fragment from the R-U-Function
GenerateButton(ClipboardProperty, String, boolean, int, boolean, ClipboardPage).
Old usage:
thisButtonString.append("if(com.pega.pegarules.jsptags.WhenTag.evaluateWhen(pega, \""
+ StringUtils.escapeIntoJavaString(visibleWhen)
+ "\",null, true)) {");
New usage:
assembler.validateWhen(cp_thisButton, visibleWhen);
thisButtonString.append("if("
+ assembler.getStreamWhenExpressionCode(null, visibleWhen)
+ ") {");
aPropForMessages
- aExpression
- aUseClassName
- class name to be used to resolve relative property referencesjava.lang.String getStreamWhenExpressionCode(ClipboardProperty aPropForMessages, java.lang.String aExpression)
As an example consider this fragment from the R-U-Function
GenerateButton(ClipboardProperty, String, boolean, int, boolean, ClipboardPage).
Old usage:
thisButtonString.append("if(com.pega.pegarules.jsptags.WhenTag.evaluateWhen(pega, \""
+ StringUtils.escapeIntoJavaString(visibleWhen)
+ "\",null, true)) {");
New usage:
thisButtonString.append("if("
+ assembler.getStreamWhenExpressionCode(null, visibleWhen)
+ ") {");
aPropForMessages
- aExpression
- IGridTemplateMetaDataGenerator getGridTemplateMetaDataGenerator(ClipboardPage aPyGenJava, IUIComponent.ComponentType aType)
aPyGenJava
- aType
- IUIAssembly getUIAssembly()
ILayoutGenerator getLayoutGenerator(ClipboardPage pyGenJava)
pyGenJava
- ClipboardPage that holds generation information.IControlGenertorUtilities getControlGenertorUtilities(ClipboardPage aPyGenJava)
Copyright © 2018 Pegasystems Inc. All Rights Reserved.