SubstratePathElem constructor

SubstratePathElem(
  1. String element
)

Creates a new instance of SubstratePathElem with the provided element.

Implementation

SubstratePathElem(String element) {
  if (!isElemValid(element)) {
    throw SubstratePathError("Invalid path element ($element)");
  }

  elem = element.replaceAll("/", "");
  isHard = element.startsWith(SubstratePathConst.hardPathPrefix);
}