diff --git a/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EListInit.java b/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EListInit.java index aa9288cc43a..d6e4616c1d8 100644 --- a/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EListInit.java +++ b/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EListInit.java @@ -30,6 +30,9 @@ import org.elasticsearch.painless.MethodWriter; import java.util.List; import java.util.Set; +/** + * Represents a list initialization shortcut. + */ public class EListInit extends AExpression { final List values; diff --git a/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EMapInit.java b/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EMapInit.java index c031087a34d..d36ac50c24e 100644 --- a/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EMapInit.java +++ b/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/EMapInit.java @@ -30,6 +30,9 @@ import org.elasticsearch.painless.MethodWriter; import java.util.List; import java.util.Set; +/** + * Represents a map initialization shortcut. + */ public class EMapInit extends AExpression { final List keys; final List values; diff --git a/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/package-info.java b/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/package-info.java index d98e5f68bcf..7111afa59f4 100644 --- a/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/package-info.java +++ b/modules/lang-painless/src/main/java/org/elasticsearch/painless/node/package-info.java @@ -44,6 +44,8 @@ * {@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.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.ENumeric} - Represents a non-decimal numeric constant. * {@link org.elasticsearch.painless.node.EUnary} - Represents a unary math expression.