Package codeanalysis.syntax
Class SyntaxRules
java.lang.Object
codeanalysis.syntax.SyntaxRules
The SyntaxRules class provides methods to determine the syntax type based on certain rules or keywords.
- Version:
- 1.0
- Author:
- Siyabend Urun
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<SyntaxType>Returns the all binary operator types.static SyntaxTypegetKeywordType(String text) Gets the syntax type based on a keyword.static StringgetTextData(SyntaxType type) Gets the text data based on syntax type.static ArrayList<SyntaxType>Returns the all unary operator types.
-
Constructor Details
-
SyntaxRules
public SyntaxRules()
-
-
Method Details
-
getKeywordType
Gets the syntax type based on a keyword.- Parameters:
text- The keyword text.- Returns:
- The syntax type corresponding to the keyword.
-
getTextData
Gets the text data based on syntax type.- Parameters:
type- The keyword text.- Returns:
- The text data corresponding to the syntax type.
-
getUnaryOperatorTypes
Returns the all unary operator types.- Returns:
- All unary operator types that defined.
-
getBinaryOperatorTypes
Returns the all binary operator types.- Returns:
- All binary operator types that defined.
-