Class DefaultQuestion
java.lang.Object
de.foellix.aql.datastructure.query.Question
de.foellix.aql.datastructure.query.DefaultQuestion
- All Implemented Interfaces:
IStringOrQuestion,Serializable
- See Also:
-
Field Summary
Fields inherited from class de.foellix.aql.datastructure.query.Question
CHILDREN_EMPTY, ENDING_SYMBOL_AQL, ENDING_SYMBOL_FILE, ENDING_SYMBOL_RAW, endingSymbol, QUESTION_TYPE_ARGUMENTS, QUESTION_TYPE_FLOWS, QUESTION_TYPE_INTENTFILTER, QUESTION_TYPE_INTENTS, QUESTION_TYPE_INTENTSINKS, QUESTION_TYPE_INTENTSOURCES, QUESTION_TYPE_PERMISSIONS, QUESTION_TYPE_SINKS, QUESTION_TYPE_SLICE, QUESTION_TYPE_SOURCES, QUESTION_TYPE_UNKNOWN, REFERENCES_EMPTY, withBrackets -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getAllReferences(boolean recursively) getChildren(boolean recursively) getFrom()getIn()intgetTo()getUses()getWiths()booleanisComplete(boolean takeUnansweredIntoAccount) Returns if this question is complete.booleanreplaceChild(Question childToReplace, IStringOrQuestion replacement) voidsetFeatures(List<IStringOrQuestion> features) voidsetFrom(QuestionReference from) voidvoidsetSubjectOfInterest(int subjectOfInterest) voidsetSubjectOfInterest(String subjectOfInterest) voidvoidsetUses(List<IStringOrQuestion> uses) voidsetWiths(Stack<StringOrQuestionPair> withs) toString(int level) Methods inherited from class de.foellix.aql.datastructure.query.Question
copy, getAllApps, getAllApps, getAllApps, getAllReferences, getChildren, getEndingSymbol, getIndent, getLeafs, getParent, hashCode, isWithBrackets, setEndingSymbol, setParent, setWithBrackets, toString, toStringInAnswerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.foellix.aql.datastructure.query.IStringOrQuestion
toStringInAnswer
-
Constructor Details
-
DefaultQuestion
public DefaultQuestion()
-
-
Method Details
-
copy
-
getSubjectOfInterest
public int getSubjectOfInterest() -
getIn
-
getFrom
-
getTo
-
getFeatures
-
getUses
-
getWiths
-
setSubjectOfInterest
-
setSubjectOfInterest
public void setSubjectOfInterest(int subjectOfInterest) -
setIn
-
setFrom
-
setTo
-
setFeatures
-
setUses
-
setWiths
-
toString
-
getChildren
- Specified by:
getChildrenin classQuestion
-
replaceChild
- Specified by:
replaceChildin classQuestion
-
getAllReferences
- Specified by:
getAllReferencesin classQuestion
-
isComplete
public boolean isComplete(boolean takeUnansweredIntoAccount) Description copied from interface:IStringOrQuestionReturns if this question is complete.- Specified by:
isCompletein interfaceIStringOrQuestion- Overrides:
isCompletein classQuestion- Parameters:
takeUnansweredIntoAccount- true: Incomplete if at least one unanswered question is contained. false: Ignores unanswered parts.- Returns:
- true if question is complete
-