public abstract class Grammar
extends java.lang.Object
Constructor and Description |
---|
Grammar() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.reflect.Field> |
getAllRuleFields(java.lang.Class grammarClass)
Find all direct and indirect rule fields declared in the given Grammar class.
|
abstract Rule |
getRootRule()
Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".
|
static java.util.List<java.lang.reflect.Field> |
getRuleFields(java.lang.Class grammarClass)
Find all the direct rule fields declared in the given Grammar class.
|
public static java.util.List<java.lang.reflect.Field> getRuleFields(java.lang.Class grammarClass)
grammarClass
- the class of the Grammar for which rule fields must be foundgetAllRuleFields
public static java.util.List<java.lang.reflect.Field> getAllRuleFields(java.lang.Class grammarClass)
grammarClass
- the class of the Grammar for which rule fields must be foundgetRuleFields
public abstract Rule getRootRule()
Copyright © 2012 SonarSource. All Rights Reserved.