public class FieldExpression extends Expression
type
Constructor and Description |
---|
FieldExpression(String field)
Constructor that creates a field expression.
|
FieldExpression(String field,
Integer index)
Constructor that creates a field expression with a list index.
|
FieldExpression(String field,
Integer index,
String subKey)
Constructor that creates a field expression with a list index and a map subkey.
|
FieldExpression(String field,
String key)
Constructor that creates a field expression with a map key.
|
FieldExpression(String field,
String key,
String subKey)
Constructor that creates a field expression with map key and a map subkey.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Evaluator |
getEvaluator()
Gets a new instance of an evaluator for this expression.
|
String |
getName()
Gets the name of this field expression formatted with delimiters for any index and/or keys.
|
int |
hashCode() |
String |
toString() |
public FieldExpression(String field)
field
- The non-null field to get.public FieldExpression(String field, Integer index)
field
- The non-null field to get.index
- The non-null index to get from the field.public FieldExpression(String field, String key)
field
- The non-null field to get.key
- The non-null key to get from the field.public FieldExpression(String field, Integer index, String subKey)
field
- The non-null field to get.index
- The non-null index to get from the field.subKey
- The non-null subkey to get from the field[index].public FieldExpression(String field, String key, String subKey)
field
- The non-null field to get.key
- The non-null key to get from the field.subKey
- The non-null subkey to get from the field.key.public String getName()
public Evaluator getEvaluator()
Expression
getEvaluator
in class Expression
public boolean equals(Object obj)
equals
in class Expression
public int hashCode()
hashCode
in class Expression
public String toString()
toString
in class Expression
Copyright © 2021. All rights reserved.