diff --git a/src/main/java/org/cqfn/astranaut/core/base/Node.java b/src/main/java/org/cqfn/astranaut/core/base/Node.java index a8462bb..a7c8564 100644 --- a/src/main/java/org/cqfn/astranaut/core/base/Node.java +++ b/src/main/java/org/cqfn/astranaut/core/base/Node.java @@ -66,6 +66,15 @@ public interface Node extends Iterable { */ Node getChild(int index); + /** + * Returns the value of some property (depends on implementation). + * @param name The name of property + * @return Property value (if the property is not defined, returns an empty string) + */ + default String getProperty(final String name) { + return this.getType().getProperty(name); + } + /** * Returns the name of the type. * @return The name