|
|||||||
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()
ELExpression
hasExternalInfluences
in interface ELExpression
hasExternalInfluences
in class AbstractELExpression
public ELExpression geneticClone(ELCall parent, GeneticParameters gp)
ELExpression
geneticClone
in interface ELExpression
ELExpression
parent
- 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)
ELExpression
cloneWithReplacement
in interface ELExpression
cloneWithReplacement
in class AbstractELExpression
ELExpression
expression
- Is not cloned.public int numSubexpressions()
protected ELExpression cloneWithChildMutations(GeneticParameters gp)
AbstractELExpression
cloneWithChildMutations
in class AbstractELExpression
ELExpression randomChild()
public java.lang.String unparse()
ELExpression
unparse
in interface ELExpression
public java.lang.String toString()
toString
in class java.lang.Object
public int numNestedSubexpressions()
ELExpression
numNestedSubexpressions
in interface ELExpression
numNestedSubexpressions
in class AbstractELExpression
public ELExpression randomSubexpression()
public ELExpression getNestedSubexpression(int targetNumber)
getNestedSubexpression
in interface ELExpression
getNestedSubexpression
in class AbstractELExpression
targetNumber
- The number of the node we're looking for. The root is zero.public void evaluate(ELMatrix out, ELEnvironment environment)
ELExpression
evaluate
in interface ELExpression
public java.lang.Object clone()
clone
in interface ELExpression
clone
in class AbstractELExpression
public int depth()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |