Interface JavaField

    • Method Detail

      • getType

        JavaClass getType()
        Equivalent of Field.getType()
        Returns:
        the type of this field, should never be null.
      • getCodeBlock

        java.lang.String getCodeBlock()
        The in-code representation of this field.
        Specified by:
        getCodeBlock in interface JavaModel
        Returns:
        the complete representation of this field
      • getInitializationExpression

        java.lang.String getInitializationExpression()
        Get the original expression used to initialize the field.
        Returns:
        initialization as string.
      • isEnumConstant

        boolean isEnumConstant()
        Equivalent of Field.isEnumConstant()
        Returns:
        true if this field is an enum constant, otherwise false
        Since:
        2.0
      • getEnumConstantClass

        JavaClass getEnumConstantClass()
        Returns:
        the classBody of the enum constant
        Since:
        2.0
      • getEnumConstantArguments

        java.util.List<Expression> getEnumConstantArguments()
        Returns:
        the arguments of the enum constant
        Since:
        2.0