More progress on Autotype command parsing

This commit is contained in:
michael starke
2014-02-20 00:35:32 +01:00
parent ae544ae810
commit a046555aee
5 changed files with 48 additions and 29 deletions

View File

@@ -40,8 +40,18 @@
return copy;
}
- (BOOL)isValid {
return (self.normalizedCommand != nil);
}
- (NSString *)evaluatedCommand {
static NSString *evaluated;
if(!evaluated) {
NSString *placeholderFilled = [self.normalizedCommand evaluatePlaceholderWithEntry:self.entry];
evaluated = [placeholderFilled resolveReferencesWithTree:self.entry.tree];
}
return evaluated;
}
@end