Class ProgramMeta

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ProgramMeta>, ProgramMeta_OrBuilder, net.morimekta.providence.PMessage<ProgramMeta>, net.morimekta.providence.PMessageOrBuilder<ProgramMeta>, net.morimekta.providence.PValue<ProgramMeta>, net.morimekta.providence.serializer.binary.BinaryWriter, net.morimekta.util.Stringable

    @Generated(value="net.morimekta.providence:providence-generator-java",
               comments="java:serializable")
    @Immutable
    public class ProgramMeta
    extends java.lang.Object
    implements ProgramMeta_OrBuilder, net.morimekta.providence.PMessage<ProgramMeta>, java.lang.Comparable<ProgramMeta>, java.io.Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
    A meta object describing a parsed program file. This may include the included programs as their own meta file. The lines of the original program .thrift file is also included.
    See Also:
    Serialized Form
    • Field Detail

      • kDescriptor

        public static final net.morimekta.providence.descriptor.PStructDescriptor<ProgramMeta> kDescriptor
    • Method Detail

      • getFilePath

        public java.lang.String getFilePath()
        Full absolute path to the file.
        Specified by:
        getFilePath in interface ProgramMeta_OrBuilder
        Returns:
        The file_path value
      • optionalFilePath

        @Nonnull
        public java.util.Optional<java.lang.String> optionalFilePath()
        Full absolute path to the file.
        Specified by:
        optionalFilePath in interface ProgramMeta_OrBuilder
        Returns:
        Optional of the file_path field value.
      • getFileLines

        public java.util.List<java.lang.String> getFileLines()
        The lines of the program file
        Specified by:
        getFileLines in interface ProgramMeta_OrBuilder
        Returns:
        The file_lines value
      • optionalFileLines

        @Nonnull
        public java.util.Optional<java.util.List<java.lang.String>> optionalFileLines()
        The lines of the program file
        Specified by:
        optionalFileLines in interface ProgramMeta_OrBuilder
        Returns:
        Optional of the file_lines field value.
      • getIncludes

        public java.util.Map<java.lang.String,​ProgramMeta> getIncludes()
        Map of program name to meta of included programs
        Specified by:
        getIncludes in interface ProgramMeta_OrBuilder
        Returns:
        The includes value
      • optionalIncludes

        @Nonnull
        public java.util.Optional<java.util.Map<java.lang.String,​ProgramMeta>> optionalIncludes()
        Map of program name to meta of included programs
        Specified by:
        optionalIncludes in interface ProgramMeta_OrBuilder
        Returns:
        Optional of the includes field value.
      • has

        public boolean has​(int key)
        Specified by:
        has in interface net.morimekta.providence.PMessageOrBuilder<ProgramMeta>
      • get

        public <T> T get​(int key)
        Specified by:
        get in interface net.morimekta.providence.PMessageOrBuilder<ProgramMeta>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • asString

        @Nonnull
        public java.lang.String asString()
        Specified by:
        asString in interface net.morimekta.providence.PMessage<ProgramMeta>
        Specified by:
        asString in interface net.morimekta.util.Stringable
      • compareTo

        public int compareTo​(ProgramMeta other)
        Specified by:
        compareTo in interface java.lang.Comparable<ProgramMeta>
      • writeBinary

        public int writeBinary​(net.morimekta.util.io.BigEndianBinaryWriter writer)
                        throws java.io.IOException
        Specified by:
        writeBinary in interface net.morimekta.providence.serializer.binary.BinaryWriter
        Throws:
        java.io.IOException
      • provider

        @Nonnull
        public static net.morimekta.providence.descriptor.PStructDescriptorProvider<ProgramMeta> provider()
      • descriptor

        @Nonnull
        public net.morimekta.providence.descriptor.PStructDescriptor<ProgramMeta> descriptor()
        Specified by:
        descriptor in interface net.morimekta.providence.PMessageOrBuilder<ProgramMeta>
        Specified by:
        descriptor in interface net.morimekta.providence.PValue<ProgramMeta>
      • builder

        public static ProgramMeta._Builder builder()
        Make a p_model.ProgramMeta builder.
        Returns:
        The builder instance.