org.codehaus.jparsec.examples.java.ast.expression
Class NewArrayExpression

java.lang.Object
  extended by org.codehaus.jparsec.examples.common.ValueObject
      extended by org.codehaus.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.

Author:
Ben Yu

Field Summary
 TypeLiteral elementType
           
 List<Expression> initializer
           
 Expression length
           
 
Constructor Summary
NewArrayExpression(TypeLiteral type, Expression length, List<Expression> initializer)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.codehaus.jparsec.examples.common.ValueObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

elementType

public final TypeLiteral elementType

length

public final Expression length

initializer

public final List<Expression> initializer
Constructor Detail

NewArrayExpression

public NewArrayExpression(TypeLiteral type,
                          Expression length,
                          List<Expression> initializer)
Method Detail

toString

public String toString()
Overrides:
toString in class ValueObject


Copyright © 2014. All rights reserved.