Package jadex.rules.parser.conditions
Class SConditions
- java.lang.Object
- 
- jadex.rules.parser.conditions.SConditions
 
- 
 public class SConditions extends java.lang.ObjectStatic helper methods for conditions parser.
- 
- 
Constructor SummaryConstructors Constructor Description SConditions()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voidadaptConditionType(Variable var, OAVObjectType type)protected static java.lang.ObjectconvertAttributeTypes(OAVTypeModel tmodel, OAVObjectType otype, java.lang.String slotname, java.lang.String[] imports)Convert slot name(s) to attribute(s) types.protected static MethodCallcreateMethodCall(OAVObjectType otype, java.lang.String name, java.util.List params)protected static OAVObjectTypegetObjectType(OAVTypeModel tmodel, java.lang.String typename, java.lang.String[] imports)Get an object type while considering imports for Java types.protected static OAVObjectTypegetValueSourceType(OAVTypeModel tmodel, java.lang.Object valuesource)protected static booleanlookaheadFunctionCall(org.antlr.runtime.TokenStream input)Lookahead for an function call.protected static booleanlookaheadObjectCE(org.antlr.runtime.TokenStream input)Lookahead for an object condition.
 
- 
- 
- 
Method Detail- 
adaptConditionTypeprotected static void adaptConditionType(Variable var, OAVObjectType type) - Parameters:
- var-
- type-
 
 - 
createMethodCallprotected static MethodCall createMethodCall(OAVObjectType otype, java.lang.String name, java.util.List params) - Parameters:
- otype-
- name-
- params-
- Returns:
 
 - 
getValueSourceTypeprotected static OAVObjectType getValueSourceType(OAVTypeModel tmodel, java.lang.Object valuesource) - Parameters:
- tmodel-
- valuesource-
- Returns:
 
 - 
lookaheadObjectCEprotected static boolean lookaheadObjectCE(org.antlr.runtime.TokenStream input) Lookahead for an object condition. Excludes (and ...) (not ...) (test ...) conditions but allows (test.MyObject ...) object conditions.
 - 
lookaheadFunctionCallprotected static boolean lookaheadFunctionCall(org.antlr.runtime.TokenStream input) Lookahead for an function call. Excludes (contains ...) (excludes ...) conditions but allows (contains.MyObject ...) function calls.
 - 
convertAttributeTypesprotected static java.lang.Object convertAttributeTypes(OAVTypeModel tmodel, OAVObjectType otype, java.lang.String slotname, java.lang.String[] imports) Convert slot name(s) to attribute(s) types.- Parameters:
- otype- The object type.
- slotname- The slotname string.
- Returns:
- The attribute type or an array of attribute types.
 
 - 
getObjectTypeprotected static OAVObjectType getObjectType(OAVTypeModel tmodel, java.lang.String typename, java.lang.String[] imports) Get an object type while considering imports for Java types.- Parameters:
- tmodel- The type model.
- typename- The name of the type to search for.
- imports- The imports (if any).
- loader- The class loader.
- Returns:
- The type.
 
 
- 
 
-