(.js)
laraImport("weaver.JoinPoints");
(.lara)
import weaver.JoinPoints;
Classes:
new JoinPoints()
Object which provides low-level join point-related methods.
getAttribute($jp, attributeNames)
Iterates of attributeNames, returns the first value that is not null or undefined.
If no value is found for the given attributes, returns undefined
getAttributeStrict($jp, attributeNames)
Helper method of getAttribute which throws an exception if no value is found
getCode($jp)
Converts the join point to a string of code. Expects attribute 'code' to exist.
getInstance()
children($jp, jpType)
descendants($jp, jpType)
descendantsPostorder($jp, jpType)
root()
scope($jp, jpType)
toJoinPoint([missing param name], node)
Converts an AST node to a JointPoint.