eu.mihosoft.vmf.vmftext.grammar.UPNamedSubRuleElement Maven / Gradle / Ivy
The newest version!
package eu.mihosoft.vmf.vmftext.grammar;
// vmf imports
//import eu.mihosoft.vmf.runtime.core.*;
import eu.mihosoft.vcollections.*;
// property types imports
// interface
/**
* A representation of the model object {@code eu.mihosoft.vmf.vmftext.grammar.UPNamedSubRuleElement}.
*
*
*
*
*/
public interface UPNamedSubRuleElement extends eu.mihosoft.vmf.runtime.core.VObject, UPElement,SubRule,WithName, Cloneable, eu.mihosoft.vmf.runtime.core.Mutable {
// --------------------------------------------------------------------
// --- declaration of delegation methods
// --------------------------------------------------------------------
// --------------------------------------------------------------------
// --- Builder methods
// --------------------------------------------------------------------
public static interface Builder {
/**
* Sets the 'alternatives' property of this builder.
* @param alternatives value to set
* @return this builder
*/
public Builder withAlternatives(eu.mihosoft.vcollections.VList alternatives);
/**
* Sets the 'id' property of this builder.
* @param id value to set
* @return this builder
*/
public Builder withId(int id);
/**
* Sets the 'lexerRule' property of this builder.
* @param lexerRule value to set
* @return this builder
*/
public Builder withLexerRule(boolean lexerRule);
/**
* Sets the 'listType' property of this builder.
* @param listType value to set
* @return this builder
*/
public Builder withListType(boolean listType);
/**
* Sets the 'name' property of this builder.
* @param name value to set
* @return this builder
*/
public Builder withName(java.lang.String name);
/**
* Sets the 'negated' property of this builder.
* @param negated value to set
* @return this builder
*/
public Builder withNegated(boolean negated);
/**
* Sets the 'parserRule' property of this builder.
* @param parserRule value to set
* @return this builder
*/
public Builder withParserRule(boolean parserRule);
/**
* Sets the 'ruleName' property of this builder.
* @param ruleName value to set
* @return this builder
*/
public Builder withRuleName(java.lang.String ruleName);
/**
* Sets the 'terminal' property of this builder.
* @param terminal value to set
* @return this builder
*/
public Builder withTerminal(boolean terminal);
/**
* Sets the 'text' property of this builder.
* @param text value to set
* @return this builder
*/
public Builder withText(java.lang.String text);
/**
* Builds a new '{@link eu.mihosoft.vmf.vmftext.grammar.UPNamedSubRuleElement UPNamedSubRuleElement}' instance.
* @return a new '{@link eu.mihosoft.vmf.vmftext.grammar.UPNamedSubRuleElement UPNamedSubRuleElement}' instance
*/
public UPNamedSubRuleElement build();
/**
* Defines whether to append collections rather than replacing them in the
* {@link #applyFrom(UPNamedSubRuleElement)} and {@link #applyTo(UPNamedSubRuleElement)} methods.
* @param value that indicates whether to append collections
* @return this builder
*/
public Builder appendCollections(boolean value);
/**
* Applies all properties from the specified object to this builder.
* @param o object to apply properties from
* @return this builder
* @see #applyTo(UPNamedSubRuleElement)
*/
public Builder applyFrom(UPNamedSubRuleElement o);
/**
* Applies all properties from this builder to the specified object.
* @param o object to apply properties to
* @return this builder
* @see #applyFrom(UPNamedSubRuleElement)
*/
public Builder applyTo(UPNamedSubRuleElement o);
} // end class Builder
/**
* Returns a new builder for creating a '{@link eu.mihosoft.vmf.vmftext.grammar.UPNamedSubRuleElement UPNamedSubRuleElement}' instance.
* @return a new builder for creating a '{@link eu.mihosoft.vmf.vmftext.grammar.UPNamedSubRuleElement UPNamedSubRuleElement}' instance
*/
static Builder newBuilder() {
return __VMF__UPNamedSubRuleElement_Creator.newBuilderInstance();
} // end newBuilder()
/**
* Creates a new instance of '{@link UPNamedSubRuleElement UPNamedSubRuleElement}'
* @return a new instance of '{@link UPNamedSubRuleElement UPNamedSubRuleElement}'
*/
static UPNamedSubRuleElement newInstance() {
return __VMF__UPNamedSubRuleElement_Creator.newInstance();
}
/**
* Returns a read-only wrapper of '{@link UPNamedSubRuleElement UPNamedSubRuleElement}'
* @return a read-only wrapper of '{@link UPNamedSubRuleElement UPNamedSubRuleElement}'
*/
ReadOnlyUPNamedSubRuleElement asReadOnly();
/**
* Returns a deep clone of this object.
* @return a deep clone of this object
*/
@Override
UPNamedSubRuleElement clone() /*throws CloneNotSupportedException*/;
}
/*
* Creates instances of type {@codeeu.mihosoft.vmf.vmftext.grammar.impl.UPNamedSubRuleElementImpl}. Method handles
* and class objects are lazily initialized and cached since repetitive and high frequent usage is likely.
*
* This class is used to gain efficient avvess to private classes from the impl package.
*/
class __VMF__UPNamedSubRuleElement_Creator {
static Class> cls;
static java.lang.reflect.Constructor constructor;
static java.lang.invoke.MethodHandles.Lookup lookup;
static java.lang.invoke.MethodHandle constructorMH;
static UPNamedSubRuleElement newInstance() {
try {
if(cls==null) {
cls = Class.forName("eu.mihosoft.vmf.vmftext.grammar.impl.UPNamedSubRuleElementImpl");
if(lookup==null) { lookup = java.lang.invoke.MethodHandles.lookup(); }
constructor = cls.getConstructor();
constructor.setAccessible(true);
constructorMH = lookup.unreflectConstructor(constructor);
}
return (UPNamedSubRuleElement) constructorMH.invoke();
} catch (Throwable tr) {
throw new RuntimeException("Cannot instantiate \"eu.mihosoft.vmf.vmftext.grammar.impl.UPNamedSubRuleElementImpl\"", tr);
}
}
static Class> builderCls;
static java.lang.reflect.Constructor builderConstructor;
static java.lang.invoke.MethodHandle builderConstructorMH;
static UPNamedSubRuleElement.Builder newBuilderInstance() {
try {
if(builderCls==null) {
builderCls = Class.forName("eu.mihosoft.vmf.vmftext.grammar.impl.UPNamedSubRuleElementImpl$BuilderImpl");
if(lookup==null) { lookup = java.lang.invoke.MethodHandles.lookup(); }
builderConstructor = builderCls.getConstructor();
builderConstructor.setAccessible(true);
builderConstructorMH = lookup.unreflectConstructor(builderConstructor);
}
return (UPNamedSubRuleElement.Builder) builderConstructorMH.invoke();
} catch (Throwable tr) {
throw new RuntimeException("Cannot instantiate \"eu.mihosoft.vmf.vmftext.grammar.impl.UPNamedSubRuleElementImpl\"", tr);
}
}
}