Class MainAttributes
java.lang.Object
org.spongepowered.asm.launch.platform.MainAttributes
"Main" attribute cache for a URI container, mainly to avoid constantly
opening jar files just to read odd values out of the manifest.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRetrieve the value of attribute with the specified name, or null if not presentfinal Stringget(Attributes.Name name) Retrieve the value of attribute with the specified name, or null if not presentstatic MainAttributesCreate a MainAttributes instance for the supplied jar filestatic MainAttributesCreate a MainAttributes instance for the supplied jar file
-
Field Details
-
attributes
Manifest from jar
-
-
Method Details
-
get
Retrieve the value of attribute with the specified name, or null if not present- Parameters:
name- attribute name- Returns:
- attribute value or null if not present
-
get
Retrieve the value of attribute with the specified name, or null if not present- Parameters:
name- attribute name- Returns:
- attribute value or null if not present
-
of
Create a MainAttributes instance for the supplied jar file- Parameters:
jar- jar file- Returns:
- MainAttributes instance
-
of
Create a MainAttributes instance for the supplied jar file- Parameters:
uri- jar file location- Returns:
- MainAttributes instance
-