public P expression( String expression ) { FromDescr from = new FromDescr(); from.setDataSource( new MVELExprDescr( expression ) ); descr.setSource( from ); return parent; }
public PackageDescrBuilder attribute( String name, String value, AttributeDescr.Type type ) { descr.addAttribute( new AttributeDescr( name, value, type ) ); return this; }
public void addFunction( String function, String bind, String[] params ) { addFunction( new AccumulateFunctionCallDescr( function, bind, params ) ); }
public void copyLocation( BaseDescr d ) { this.setLocation( d.getLine(), d.getColumn() ); this.setEndLocation( d.getEndLine(), d.getEndColumn() ); this.setStartCharacter( d.getStartCharacter() ); this.setEndCharacter( d.getEndCharacter() ); }
public FieldDescrBuilder type( String type ) { descr.setPattern( new PatternDescr( type ) ); return this; }
public TypeDeclarationError(TypeFieldDescr fieldDescr, String errorMessage) { super(fieldDescr.getResource()); this.errorMessage = errorMessage; this.line = new int[] { fieldDescr.getLine() }; this.namespace = fieldDescr.getNamespace(); }
public RuleDescrBuilder attribute( String name, String value ) { descr.addAttribute( new AttributeDescr( name, value ) ); return this; }
public P window( String window ) { WindowReferenceDescr wd = new WindowReferenceDescr( window ); descr.setSource( wd ); return parent; } }
public void copyParameters( BaseDescr base ) { if ( base instanceof RelationalExprDescr ) { setParameters( ((RelationalExprDescr) base).getParameters() ); } } }
public void setNamespace( String namespace ) { super.setNamespace(namespace); this.type.setNamespace(namespace); }
public PatternDescrBuilder<P> bind( String var, String target, boolean isUnification ) { descr.addConstraint( new BindingDescr( var, target, isUnification ) ); return this; }
public P entryPoint( String entryPoint ) { EntryPointDescr ep = new EntryPointDescr( entryPoint ); descr.setSource( ep ); return parent; }
public AnnotationDescrBuilder<P> keyValue( String key, String value ) { descr.setKeyValue( key, value ); return this; }
public RelationalExprDescr(String operator, boolean negated, List<String> parameters, BaseDescr left, BaseDescr right) { this.left = left; this.right = right; this.operator = new OperatorDescr( operator, negated, parameters ); }
/** * @param type */ public BehaviorDescr(String type) { setText(type); }
public DescrBuilder<P, T> startLocation( int line, int column ) { descr.setLocation( line, column ); return this; }
public VariableRestrictionDescr(final String evaluator, final String identifier ) { super( evaluator, false, (List<String>)null ); this.setText( identifier ); }
public PackageDescrBuilder attribute( String name, String value ) { descr.addAttribute( new AttributeDescr( name, value ) ); return this; }
public RuleDescrBuilder attribute( String name, String value, AttributeDescr.Type type ) { descr.addAttribute( new AttributeDescr( name, value, type ) ); return this; }