Class NewArrayExpression
- java.lang.Object
-
- org.jparsec.examples.common.ValueObject
-
- org.jparsec.examples.java.ast.expression.NewArrayExpression
-
- All Implemented Interfaces:
Expression
public final class NewArrayExpression extends ValueObject implements Expression
Represents a "new Foo[] {...}" or "new Foo[size] {...}" expression.
-
-
Field Summary
Fields Modifier and Type Field Description TypeLiteral
elementType
java.util.List<Expression>
initializer
Expression
length
-
Constructor Summary
Constructors Constructor Description NewArrayExpression(TypeLiteral type, Expression length, java.util.List<Expression> initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
Methods inherited from class org.jparsec.examples.common.ValueObject
equals, hashCode
-
-
-
-
Field Detail
-
elementType
public final TypeLiteral elementType
-
length
public final Expression length
-
initializer
public final java.util.List<Expression> initializer
-
-
Constructor Detail
-
NewArrayExpression
public NewArrayExpression(TypeLiteral type, Expression length, java.util.List<Expression> initializer)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classValueObject
-
-