Class Question

java.lang.Object
de.foellix.aql.datastructure.query.Question
All Implemented Interfaces:
IStringOrQuestion, Serializable
Direct Known Subclasses:
DefaultQuestion, LoadingQuestion, OperatorQuestion

public abstract class Question extends Object implements IStringOrQuestion, Serializable
See Also:
  • Field Details

    • QUESTION_TYPE_UNKNOWN

      public static final int QUESTION_TYPE_UNKNOWN
      See Also:
    • QUESTION_TYPE_FLOWS

      public static final int QUESTION_TYPE_FLOWS
      See Also:
    • QUESTION_TYPE_PERMISSIONS

      public static final int QUESTION_TYPE_PERMISSIONS
      See Also:
    • QUESTION_TYPE_INTENTS

      public static final int QUESTION_TYPE_INTENTS
      See Also:
    • QUESTION_TYPE_INTENTFILTER

      public static final int QUESTION_TYPE_INTENTFILTER
      See Also:
    • QUESTION_TYPE_INTENTSOURCES

      public static final int QUESTION_TYPE_INTENTSOURCES
      See Also:
    • QUESTION_TYPE_INTENTSINKS

      public static final int QUESTION_TYPE_INTENTSINKS
      See Also:
    • QUESTION_TYPE_SLICE

      public static final int QUESTION_TYPE_SLICE
      See Also:
    • QUESTION_TYPE_SOURCES

      public static final int QUESTION_TYPE_SOURCES
      See Also:
    • QUESTION_TYPE_SINKS

      public static final int QUESTION_TYPE_SINKS
      See Also:
    • QUESTION_TYPE_ARGUMENTS

      public static final int QUESTION_TYPE_ARGUMENTS
      See Also:
    • ENDING_SYMBOL_AQL

      public static final char ENDING_SYMBOL_AQL
      See Also:
    • ENDING_SYMBOL_FILE

      public static final char ENDING_SYMBOL_FILE
      See Also:
    • ENDING_SYMBOL_RAW

      public static final char ENDING_SYMBOL_RAW
      See Also:
    • CHILDREN_EMPTY

      protected static final Set<Question> CHILDREN_EMPTY
    • REFERENCES_EMPTY

      protected static final Set<QuestionReference> REFERENCES_EMPTY
    • endingSymbol

      protected char endingSymbol
    • withBrackets

      protected boolean withBrackets
  • Constructor Details

    • Question

      public Question()
  • Method Details

    • copy

      public void copy(Question copy)
    • isComplete

      public boolean isComplete(boolean takeUnansweredIntoAccount)
      Description copied from interface: IStringOrQuestion
      Returns if this question is complete.
      Specified by:
      isComplete in interface IStringOrQuestion
      Parameters:
      takeUnansweredIntoAccount - true: Incomplete if at least one unanswered question is contained. false: Ignores unanswered parts.
      Returns:
      true if question is complete
    • getEndingSymbol

      public char getEndingSymbol()
    • isWithBrackets

      public boolean isWithBrackets()
    • setEndingSymbol

      public void setEndingSymbol(char endingSymbol)
    • setWithBrackets

      public void setWithBrackets(boolean withBrackets)
    • getParent

      public Question getParent()
    • setParent

      public void setParent(Question parent)
    • getIndent

      protected String getIndent(int level)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toStringInAnswer

      public String toStringInAnswer()
      Specified by:
      toStringInAnswer in interface IStringOrQuestion
    • toString

      public String toString()
      Specified by:
      toString in interface IStringOrQuestion
      Overrides:
      toString in class Object
    • getLeafs

      public Collection<Question> getLeafs()
    • toString

      public abstract String toString(int level)
    • getChildren

      public Collection<Question> getChildren()
    • getChildren

      public abstract Collection<Question> getChildren(boolean recursively)
    • replaceChild

      public abstract boolean replaceChild(Question childToReplace, IStringOrQuestion replacement)
    • getAllReferences

      public Collection<QuestionReference> getAllReferences()
    • getAllReferences

      public abstract Collection<QuestionReference> getAllReferences(boolean recursively)
    • getAllApps

      public Collection<App> getAllApps()
    • getAllApps

      public Collection<App> getAllApps(boolean recursively)
    • getAllApps

      public Collection<App> getAllApps(boolean recursively, boolean mergeByHash)