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 String
Retrieve the value of attribute with the specified name, or null if not presentfinal String
get
(Attributes.Name name) Retrieve the value of attribute with the specified name, or null if not presentstatic MainAttributes
Create a MainAttributes instance for the supplied jar filestatic MainAttributes
Create 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
-