|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--AbstractELExpression
|
+--ELCall
An operator expression.
| Field Summary | |
(package private) boolean |
_hasExternalInfluences
|
(package private) ELExpression[] |
child
|
(package private) int |
complexityScore
|
(package private) ELOperator |
operator
|
| Constructor Summary | |
protected |
ELCall(ELOperator operator,
ELExpression[] subExpressions)
|
| Method Summary | |
java.lang.Object |
clone()
|
protected ELExpression |
cloneWithChildMutations(GeneticParameters gp)
Clone, genetically cloning children but perfectly cloning this expression itself. |
ELExpression |
cloneWithReplacement(ELExpression e,
int p)
Creates a perfect clone with expression substitited for node at position. |
int |
depth()
Returns the maximum depth of this expression, where depth is the maximum number of expressions enclosing a subexpression. |
void |
evaluate(ELMatrix out,
ELEnvironment environment)
Evaluates this expression. |
ELExpression |
geneticClone(ELCall parent,
GeneticParameters gp)
Clones, possibly mutating. |
ELExpression |
getNestedSubexpression(int targetNumber)
Returns a nested subexpression. |
boolean |
hasExternalInfluences()
Returns true if the output is influenced by the environment. |
int |
numNestedSubexpressions()
The total number of nodes (including this one) below this expression. |
int |
numSubexpressions()
Returns the number of sub expressions (formal parameters) in this call. |
(package private) ELExpression |
randomChild()
Randomly chooses a child expression and returns it. |
ELExpression |
randomSubexpression()
|
java.lang.String |
toString()
|
java.lang.String |
unparse()
Generates an EL language source string sufficient to uniquely identify this expression. |
| Methods inherited from class AbstractELExpression |
cloneSiblingMutation, encloseInNewCallMutation, randomNestedSubexpression, sameExpression |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface ELExpression |
randomNestedSubexpression, sameExpression |
| Field Detail |
ELOperator operator
ELExpression[] child
int complexityScore
boolean _hasExternalInfluences
| Constructor Detail |
protected ELCall(ELOperator operator,
ELExpression[] subExpressions)
subExpressions - array is used directly, not cloned.| Method Detail |
public boolean hasExternalInfluences()
ELExpressionhasExternalInfluences in interface ELExpressionhasExternalInfluences in class AbstractELExpression
public ELExpression geneticClone(ELCall parent,
GeneticParameters gp)
ELExpressiongeneticClone in interface ELExpressionELExpressionparent - Parent expression from previous generation. don't
point at or mutate this; it is provided so you can get access to
siblings. May be null if there is no parent (i.e. top-level
expression).
public ELExpression cloneWithReplacement(ELExpression e,
int p)
ELExpressioncloneWithReplacement in interface ELExpressioncloneWithReplacement in class AbstractELExpressionELExpressionexpression - Is not cloned.public int numSubexpressions()
protected ELExpression cloneWithChildMutations(GeneticParameters gp)
AbstractELExpressioncloneWithChildMutations in class AbstractELExpressionELExpression randomChild()
public java.lang.String unparse()
ELExpressionunparse in interface ELExpressionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int numNestedSubexpressions()
ELExpressionnumNestedSubexpressions in interface ELExpressionnumNestedSubexpressions in class AbstractELExpressionpublic ELExpression randomSubexpression()
public ELExpression getNestedSubexpression(int targetNumber)
getNestedSubexpression in interface ELExpressiongetNestedSubexpression in class AbstractELExpressiontargetNumber - The number of the node we're looking for. The root is zero.
public void evaluate(ELMatrix out,
ELEnvironment environment)
ELExpressionevaluate in interface ELExpressionpublic java.lang.Object clone()
clone in interface ELExpressionclone in class AbstractELExpressionpublic int depth()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||