Package org.eolang.opeo.ast
Class Attributes
java.lang.Object
org.eolang.opeo.ast.Attributes
- All Implemented Interfaces:
Xmir
Type attributes of AST nodes.
This class is useful when we need to preserve the information about types of AST nodes.
- Since:
- 0.1
-
Constructor Summary
ConstructorsConstructorDescriptionAttributes
(String raw) Constructor.Attributes
(String... entries) Constructor.Attributes
(Map<String, String> all) Constructor.Attributes
(org.eolang.jeo.representation.xmir.XmlNode node) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet descriptor attribute.descriptor
(String descriptor) Set descriptor attribute.boolean
Get interfaced attribute.interfaced
(boolean interfaced) Set interfaced attribute.name()
Get name attribute.Set name attribute.owner()
Get owner attribute.Set owner attribute.toString()
org.xembly.Directives
toXmir()
Convert node to XMIR.type()
Get type attribute.Set type attribute.
-
Constructor Details
-
Attributes
Constructor.- Parameters:
raw
- Raw attributes
-
Attributes
Constructor.- Parameters:
entries
- Attribute entry pairs.
-
Attributes
public Attributes(org.eolang.jeo.representation.xmir.XmlNode node) Constructor.- Parameters:
node
- Xmir representation of attributes.
-
Attributes
Constructor.- Parameters:
all
- All attributes.
-
-
Method Details
-
toXmir
public org.xembly.Directives toXmir()Description copied from interface:Xmir
Convert node to XMIR. -
toString
-
descriptor
Get descriptor attribute.- Returns:
- Descriptor value.
-
descriptor
Set descriptor attribute.- Parameters:
descriptor
- Descriptor- Returns:
- This object
-
type
Get type attribute.- Returns:
- Type value.
-
type
Set type attribute.- Parameters:
type
- Type- Returns:
- This object
-
owner
Get owner attribute.- Returns:
- Owner value.
-
owner
Set owner attribute.- Parameters:
owner
- Owner- Returns:
- This object
-
name
Get name attribute.- Returns:
- Name value.
-
name
Set name attribute.- Parameters:
name
- Name- Returns:
- This object
-
interfaced
public boolean interfaced()Get interfaced attribute.- Returns:
- True if method is interfaced or not.
-
interfaced
Set interfaced attribute.- Parameters:
interfaced
- Interfaced method or not- Returns:
- This object
-