Package org.eolang.opeo.ast
Class Attributes
- java.lang.Object
-
- org.eolang.opeo.ast.Attributes
-
-
Constructor Summary
Constructors Constructor Description Attributes(String raw)
Constructor.Attributes(String... entries)
Constructor.Attributes(Map<String,String> all)
Constructor.Attributes(org.eolang.jeo.representation.xmir.XmlNode node)
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.boolean
interfaced()
Get interfaced attribute.Attributes
interfaced(boolean interfaced)
Set interfaced 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()
org.xembly.Directives
toXmir()
Convert node to XMIR.String
type()
Get type attribute.Attributes
type(String type)
Set type attribute.
-
-
-
Constructor Detail
-
Attributes
public Attributes(String raw)
Constructor.- Parameters:
raw
- Raw attributes
-
Attributes
public Attributes(String... entries)
Constructor.- Parameters:
entries
- Attribute entry pairs.
-
Attributes
public Attributes(org.eolang.jeo.representation.xmir.XmlNode node)
Constructor.- Parameters:
node
- Xmir representation of attributes.
-
-
Method Detail
-
toXmir
public org.xembly.Directives toXmir()
Description copied from interface:Xmir
Convert node to XMIR.
-
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
-
interfaced
public boolean interfaced()
Get interfaced attribute.- Returns:
- True if method is interfaced or not.
- To do:
- #201:90min Fix 'staticize' optimization. We need to use of the default value below because outdated 'staticize' optimization doesn't add 'interfaced' attribute to some methods. Particulary, scope="name=get|descriptor=()I|owner=org/eolang/benchmark/StaticizedA|type=method" in class A should contain 'interfaced=false'. To implement this, we need to send a PR to ineo-maven-plugin repository. See https://github.com/objectionary/ineo-maven-plugin
-
interfaced
public Attributes interfaced(boolean interfaced)
Set interfaced attribute.- Parameters:
interfaced
- Interfaced method or not- Returns:
- This object
-
-