Exemplo n.º 1
0
 private void AddVariable(String line, String template, Variable variable, VariableTypes type)
 {
     if (new Regex(String.Format(template, variable.Name)).IsMatch(line))
     {
         variable.AddType(type);
     }
 }
Exemplo n.º 2
0
 private void AddStrings(String source)
 {
     var matches = new Regex(JavaDictionary.StringQuotes).Matches(source);
     foreach (var str in matches)
     {
         var added = new Variable(((Match)str).Value);
         added.AddType(VariableTypes.Output);
         Variables.Add(added);
     }
 }
Exemplo n.º 3
0
 private void CheckVariable(String line, Variable variable)
 {
     AddVariable(line, JavaDictionary.OutputVariable, variable, VariableTypes.Output);
     AddVariable(line, JavaDictionary.ChangedVariable, variable, VariableTypes.Modify);
     AddVariable(line, JavaDictionary.ControlVariable, variable, VariableTypes.Control);
 }