com.pega.pegarules.pub.generator
Interface StringExpression

All Superinterfaces:
Expression

public interface StringExpression
extends Expression

The StringExpression interface is provided to facilitate the assembly of String-valued expressions to be used in Java generated for First-Use Assembly.

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
John van der Meer

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Fields inherited from interface com.pega.pegarules.pub.generator.Expression
EXPR_BOOLEAN, EXPR_INTEGER, EXPR_PROPERTY, EXPR_STRING
 
Method Summary
 void append(StringExpression aOther)
          Extends this StringExpression with the specified one.
 void appendExpression(java.lang.String aExpression)
          Extends this StringExpression with the specified Java expression, which is presumed to produce a String value.
 void appendString(java.lang.String aString)
          Extends this StringExpression with the specified String value.
 boolean isEmpty()
          Indicates whether this instance represents an empty String.
 java.lang.String toString()
          Provides the String value represented by this instance if Expression.isLiteral() returns true.
 
Methods inherited from interface com.pega.pegarules.pub.generator.Expression
addExpression, getType, isExpression, isLiteral
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

static final java.lang.String VERSION
See Also:
Constant Field Values
Method Detail

append

void append(StringExpression aOther)
Extends this StringExpression with the specified one.

Parameters:
aOther - StringExpression to be appended

appendExpression

void appendExpression(java.lang.String aExpression)
Extends this StringExpression with the specified Java expression, which is presumed to produce a String value.

Parameters:
aExpression - Java expression to be appended

appendString

void appendString(java.lang.String aString)
Extends this StringExpression with the specified String value.

Parameters:
aString - String value to be appended

isEmpty

boolean isEmpty()
Indicates whether this instance represents an empty String.

Returns:
true if this instance represents an empty String

toString

java.lang.String toString()
Provides the String value represented by this instance if Expression.isLiteral() returns true.

Overrides:
toString in class java.lang.Object
Returns:
String value of this instance
Throws:
ExpressionException - if this method is called when isLiteral returns false


Copyright © 2012 Pegasystems Inc. All Rights Reserved.