Package org.eolang.opeo.ast
Class Attributes
java.lang.Object
org.eolang.opeo.ast.Attributes
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. -
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()
type()
Get type attribute.Set type attribute.
-
Constructor Details
-
Attributes
Constructor.- Parameters:
raw
- Raw attributes
-
Attributes
Constructor.- Parameters:
entries
- Attribute entry pairs.
-
Attributes
Constructor.- Parameters:
all
- All attributes.
-
-
Method Details
-
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
-