Class JArrayCompRef

java.lang.Object
com.sun.codemodel.JExpressionImpl
com.sun.codemodel.JArrayCompRef
All Implemented Interfaces:
JAssignmentTarget, JExpression, JGenerable

final class JArrayCompRef extends JExpressionImpl implements JAssignmentTarget
array component reference.
  • Field Details

    • array

      private final JExpression array
      JArray expression upon which this component will be accessed.
    • index

      private final JExpression index
      Integer expression representing index of the component
  • Constructor Details

    • JArrayCompRef

      JArrayCompRef(JExpression array, JExpression index)
      JArray component reference constructor given an array expression and index.
      Parameters:
      array - JExpression for the array upon which the component will be accessed,
      index - JExpression for index of component to access
  • Method Details