public interface CodeGenerator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
TYPE_CLIPBOARD_PROPERTY
The constant variable to hold the code for the type clipboard property
|
static int |
TYPE_LOCAL
The constant variable to hold the code for the type local
|
static int |
TYPE_PARAM
The constant variable to hold the code for the type param
|
static int |
TYPE_VALUE
The constant variable to hold the code for the type value
|
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
boolean |
getAvoidJavaPropertyLookup()
Gets the flag that indicates that Java property lookup should be avoided during
getIfPresent of property.
|
ClassInfo |
getClassInfo()
Returns the class info (that contains this property).
|
java.util.List |
getDeclarativeReferences()
get list of declarative references
|
java.lang.String |
getDiagnosticPrimary()
Returns the diagnostic copy of the Primary buffer
|
java.util.List |
getErrorMessages()
Returns the error messages resulting from translating an expression.
|
java.lang.String |
getErrorMessagesAsString(boolean aFormatted,
boolean aEscapeQuotes)
returns the error messages as a String
|
boolean |
getForcePAndCLookup()
Gets the setting that forces lookup of relative references in Pages & Classes
|
int |
getGeneratedType()
Returns the generated type of the translated expression.
|
boolean |
getHasUnresolvedAssemblyError()
retrieve flag that indicates parser inserted an UnresolvedAssemblyError
statement in the code.
|
java.lang.String |
getJavaType()
Returns the mJavaType.
|
char |
getMode()
Returns the mMode.
|
boolean |
getMustHaveVariable()
retrieve the indicator that the caller wants to force the
generation of an intermediate variable for this expression.
|
char |
getPegaType()
Returns the Pega type of the translated expression.
|
java.lang.String |
getPegaTypeName()
Returns the mPegaType.
|
java.lang.String |
getPrimary()
Returns the mPrimary.
|
java.lang.String |
getPropertyInfoName()
return the qualified PropertyInfo.TYPE_xxx name for the type
|
ImmutablePropertyInfo |
getPropInfo()
Returns the mPropInfo.
|
java.lang.String |
getPropName()
Returns the name of this property.
|
boolean |
getRefNameOnly()
parse reference name only -- for step page name parse
|
java.lang.String |
getSecondary()
Returns the mSecondary.
|
java.lang.String |
getTertiary()
Returns the mTertiary.
|
boolean |
getUseIfPresent()
Gets the flag that indicates that getIfPresent should be used instead
of getProperty to resolve property references.
|
boolean |
isTertiaryVariableNameOnly() |
void |
setAvoidJavaPropertyLookup(boolean aAvoidJavaPropertyLookup)
Sets the flag that indicates that Java property lookup should be avoided during
getIfPresent of property.
|
void |
setForcePAndCLookup(boolean aForcePAndCLookup)
Sets the flag that indicates that the embedded expression contains a relative reference
that MUST be looked up in Pages & Classes.
|
void |
setGeneratedType(int aGeneratedType)
Sets the generated type.
|
void |
setJavaType(java.lang.String aJavaType)
Sets the expected JavaType.
|
void |
setMode(char aMode)
Sets the expected Mode.
|
void |
setMustHaveVariable(boolean aValue)
set the indicator that the caller wants to force the
generation of an intermediate variable for this expression.
|
void |
setPegaType(char aPegaType)
Sets the expected pega type using a PropertyInfo type code
|
void |
setPegaType(java.lang.String aPegaType)
Sets the expected pega type using a type name
|
void |
setRefNameOnly(boolean aValue)
parse reference name only -- for step page name parse
|
void |
setUseIfPresent(boolean aUseIfPresent)
Sets the flag that requests the expression code generator to use getIfPresent instead
of getProperty to resolve property references.
|
java.lang.String |
toString()
Return a string (for debugging) that contains content of this instance.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final int TYPE_CLIPBOARD_PROPERTY
static final int TYPE_LOCAL
static final int TYPE_PARAM
static final int TYPE_VALUE
java.util.List getErrorMessages()
java.lang.String getErrorMessagesAsString(boolean aFormatted, boolean aEscapeQuotes)
aFormatted
- true
if messages should be formatted
using Rule-Message, false
for raw, newline delimited messagesaEscapeQuotes
- true
if quotations should be escaped so that
message may itself be used within a quoted stringint getGeneratedType()
TYPE_
constantsjava.lang.String getJavaType()
char getMode()
char getPegaType()
TYPE_
constants of
PropertyInfo
java.lang.String getPegaTypeName()
java.lang.String getPropertyInfoName()
java.lang.String getPrimary()
java.lang.String getSecondary()
java.lang.String getTertiary()
ImmutablePropertyInfo getPropInfo()
ClassInfo getClassInfo()
java.lang.String getPropName()
boolean getMustHaveVariable()
true
if an intermediate variable is requiredjava.lang.String getDiagnosticPrimary()
boolean getRefNameOnly()
boolean getHasUnresolvedAssemblyError()
true
if parser generated UnresolvedAssemblyErrorjava.util.List getDeclarativeReferences()
void setRefNameOnly(boolean aValue)
aValue
- void setMustHaveVariable(boolean aValue)
aValue
- true
if an intermediate variable is requiredvoid setJavaType(java.lang.String aJavaType)
aJavaType
- the JavaType to setvoid setMode(char aMode)
aMode
- the aMode to setvoid setPegaType(char aPegaType)
aPegaType
- the pega type to setvoid setPegaType(java.lang.String aPegaType)
aPegaType
- the pega type to setjava.lang.String toString()
toString
in class java.lang.Object
boolean getUseIfPresent()
true
if somePage.getIfPresent is in usevoid setUseIfPresent(boolean aUseIfPresent)
aUseIfPresent
- true if somePage.getIfPresent should be used.boolean getAvoidJavaPropertyLookup()
true
if the flag is true iff somePage.getIfPresent is being used.void setAvoidJavaPropertyLookup(boolean aAvoidJavaPropertyLookup)
aAvoidJavaPropertyLookup
- void setGeneratedType(int aGeneratedType)
CodeGenerator.TYPE_*
valuesaGeneratedType
- the generated type to setvoid setForcePAndCLookup(boolean aForcePAndCLookup)
aForcePAndCLookup
- true iff the flag should be set to trueboolean getForcePAndCLookup()
boolean isTertiaryVariableNameOnly()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.