| org.netbeans.modules.ruby.hints.spi.AstRule
All known Subclasses: org.netbeans.modules.ruby.hints.CamelCaseNames, org.netbeans.modules.ruby.hints.NestedLocal, org.netbeans.modules.ruby.hints.AccidentalAssignment, org.netbeans.modules.ruby.hints.Deprecations, org.netbeans.modules.ruby.hints.AttributeIsLocal, org.netbeans.modules.ruby.hints.BlockVarReuse, org.netbeans.modules.ruby.hints.ConstantNames, org.netbeans.modules.ruby.hints.RailsViews, org.netbeans.modules.ruby.hints.ConvertConditionals, org.netbeans.modules.ruby.hints.UnsafeIdentifierChars, org.netbeans.modules.ruby.hints.ConvertBlockType, org.netbeans.modules.ruby.hints.HashListConvert, org.netbeans.modules.ruby.hints.RetryOutsideRescue, org.netbeans.modules.ruby.hints.ConvertIfToUnless, org.netbeans.modules.ruby.hints.ExpandSameLineDef, org.netbeans.modules.ruby.hints.RailsDeprecations, org.netbeans.modules.ruby.hints.ColonToThen,
AstRule | public interface AstRule extends UserConfigurableRule(Code) | | Represents a rule to be run on the source file, passing in some
compilation context to aid the rule. (Similar to TreeRule for java/hints).
author: Tor Norbye |
Method Summary | |
public Set<Integer> | getKinds() Get the ElementKinds this rule should run on. | public void | run(RuleContext context, List<Description> result) Run the test on given CompilationUnit and return list of Errors or
warrnings to be shown in the editor. |
getKinds | public Set<Integer> getKinds()(Code) | | Get the ElementKinds this rule should run on.
The integers should correspond to values in
org.jruby.ast.NodeTypes |
run | public void run(RuleContext context, List<Description> result)(Code) | | Run the test on given CompilationUnit and return list of Errors or
warrnings to be shown in the editor.
|
|
|