Added some brief docs.

This commit is contained in:
Jack Conradson 2016-06-21 12:56:54 -07:00
parent 346b1802ee
commit 0b4fc85367
3 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,9 @@ import org.elasticsearch.painless.MethodWriter;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
/**
* Represents a list initialization shortcut.
*/
public class EListInit extends AExpression { public class EListInit extends AExpression {
final List<AExpression> values; final List<AExpression> values;

View File

@ -30,6 +30,9 @@ import org.elasticsearch.painless.MethodWriter;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
/**
* Represents a map initialization shortcut.
*/
public class EMapInit extends AExpression { public class EMapInit extends AExpression {
final List<AExpression> keys; final List<AExpression> keys;
final List<AExpression> values; final List<AExpression> values;

View File

@ -44,6 +44,8 @@
* {@link org.elasticsearch.painless.node.EDecimal} - Represents a decimal constant. * {@link org.elasticsearch.painless.node.EDecimal} - Represents a decimal constant.
* {@link org.elasticsearch.painless.node.EExplicit} - Represents an explicit cast. * {@link org.elasticsearch.painless.node.EExplicit} - Represents an explicit cast.
* {@link org.elasticsearch.painless.node.EFunctionRef} - Represents a function reference (non-capturing). * {@link org.elasticsearch.painless.node.EFunctionRef} - Represents a function reference (non-capturing).
* {@link org.elasticsearch.painless.node.EListInit} - Represents a list initialization shortcut.
* {@link org.elasticsearch.painless.node.EMapInit} - Represents a map initializiation shortcut.
* {@link org.elasticsearch.painless.node.ENull} - Represents a null constant. * {@link org.elasticsearch.painless.node.ENull} - Represents a null constant.
* {@link org.elasticsearch.painless.node.ENumeric} - Represents a non-decimal numeric constant. * {@link org.elasticsearch.painless.node.ENumeric} - Represents a non-decimal numeric constant.
* {@link org.elasticsearch.painless.node.EUnary} - Represents a unary math expression. * {@link org.elasticsearch.painless.node.EUnary} - Represents a unary math expression.