Package org.eolang.opeo.ast
Class Attributes
- java.lang.Object
-
- org.eolang.opeo.ast.Attributes
-
public final class Attributes extends Object
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
Constructors Constructor Description Attributes(String raw)
Constructor.Attributes(String... entries)
Constructor.Attributes(Map<String,String> all)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
descriptor()
Get descriptor attribute.Attributes
descriptor(String descriptor)
Set descriptor attribute.String
name()
Get name attribute.Attributes
name(String name)
Set name attribute.String
owner()
Get owner attribute.Attributes
owner(String owner)
Set owner attribute.String
toString()
String
type()
Get type attribute.Attributes
type(String type)
Set type attribute.
-
-
-
Method Detail
-
descriptor
public String descriptor()
Get descriptor attribute.- Returns:
- Descriptor value.
-
descriptor
public Attributes descriptor(String descriptor)
Set descriptor attribute.- Parameters:
descriptor
- Descriptor- Returns:
- This object
-
type
public String type()
Get type attribute.- Returns:
- Type value.
-
type
public Attributes type(String type)
Set type attribute.- Parameters:
type
- Type- Returns:
- This object
-
owner
public String owner()
Get owner attribute.- Returns:
- Owner value.
-
owner
public Attributes owner(String owner)
Set owner attribute.- Parameters:
owner
- Owner- Returns:
- This object
-
name
public String name()
Get name attribute.- Returns:
- Name value.
-
name
public Attributes name(String name)
Set name attribute.- Parameters:
name
- Name- Returns:
- This object
-
-