Class SyntaxRules

java.lang.Object
codeanalysis.syntax.SyntaxRules

public class SyntaxRules extends Object
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 Details

    • SyntaxRules

      public SyntaxRules()
  • Method Details

    • getKeywordType

      public static SyntaxType getKeywordType(String text)
      Gets the syntax type based on a keyword.
      Parameters:
      text - The keyword text.
      Returns:
      The syntax type corresponding to the keyword.
    • getTextData

      public static String getTextData(SyntaxType type)
      Gets the text data based on syntax type.
      Parameters:
      type - The keyword text.
      Returns:
      The text data corresponding to the syntax type.
    • getUnaryOperatorTypes

      public static ArrayList<SyntaxType> getUnaryOperatorTypes()
      Returns the all unary operator types.
      Returns:
      All unary operator types that defined.
    • getBinaryOperatorTypes

      public static ArrayList<SyntaxType> getBinaryOperatorTypes()
      Returns the all binary operator types.
      Returns:
      All binary operator types that defined.