private void addTypeAliasNodelets() {
        parser.setXpath("/aspectran/typeAliases");
        parser.addNodeEndlet(text -> {
            if (StringUtils.hasLength(text)) {
                Parameters parameters = new VariableParameters(text);
                for (String alias : parameters.getParameterNameSet()) {
                    assistant.addTypeAlias(alias, parameters.getString(alias));
                }
            }
        });
        parser.setXpath("/aspectran/typeAliases/typeAlias");
        parser.addNodelet(attrs -> {
            String alias = attrs.get("alias");
            String type = attrs.get("type");

            assistant.addTypeAlias(alias, type);
        });
    }
private void addTypeAliasNodelets ( ) { parser . setXpath ( "/aspectran/typeAliases" ) ; parser . addNodeEndlet ( text -> { if ( StringUtils . hasLength ( text ) ) { Parameters parameters = new VariableParameters ( text ) ; for ( String alias : parameters . getParameterNameSet ( ) ) { assistant . addTypeAlias ( alias , parameters . getString ( alias ) ) ; } } } ) ; parser . setXpath ( "/aspectran/typeAliases/typeAlias" ) ; parser . addNodelet ( attrs -> { String alias = attrs . get ( "alias" ) ; String type = attrs . get ( "type" ) ; assistant . addTypeAlias ( alias , type ) ; } ) ; }
Adds the type alias nodelets.