Class MaxAccessStatementSupport
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport<A,D,E>
-
- org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
-
- org.opendaylight.yangtools.rfc6643.parser.MaxAccessStatementSupport
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
,StatementDefinition
,StatementFactory<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
@Beta public final class MaxAccessStatementSupport extends AbstractStatementSupport<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
StatementSupport.CopyPolicy, StatementSupport.StatementEquality<A,D extends DeclaredStatement<A>>, StatementSupport.StatementPolicy<A,D extends DeclaredStatement<A>>
-
-
Constructor Summary
Constructors Constructor Description MaxAccessStatementSupport(YangParserConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MaxAccessStatement
attachDeclarationReference(MaxAccessStatement stmt, DeclarationReference reference)
Attach specifiedDeclarationReference
to a baseline declared statement.protected MaxAccessStatement
createDeclared(BoundStmtCtx<MaxAccess> ctx, ImmutableList<DeclaredStatement<?>> substatements)
protected MaxAccessEffectiveStatement
createEffective(EffectiveStmtCtx.Current<MaxAccess,MaxAccessStatement> stmt, ImmutableList<? extends EffectiveStatement<?,?>> substatements)
String
internArgument(String rawArgument)
Given a raw string representation of an argument, try to use a shared representation.MaxAccess
parseArgumentValue(StmtContext<?,?,?> ctx, String value)
Parses textual representation of argument in object representation.-
Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport
buildEffectiveSubstatements, copyEffective, createDeclared, createEffective, findFirstArgument, findFirstStatement, statementsToBuild, substatementValidator
-
Methods inherited from class org.opendaylight.yangtools.yang.parser.spi.meta.StatementSupport
adaptArgumentValue, canReuseCurrent, copyPolicy, extractEffectiveState, getArgumentDefinition, getDeclaredRepresentationClass, getEffectiveRepresentationClass, getPublicView, getStatementName, getSupportSpecificForArgument, hasArgumentSpecificSupports, isIgnoringConfig, isIgnoringIfFeatures, onFullDefinitionDeclared, onLinkageDeclared, onPreLinkageDeclared, onStatementAdded, onStatementDefinitionDeclared
-
-
-
-
Constructor Detail
-
MaxAccessStatementSupport
public MaxAccessStatementSupport(YangParserConfiguration config)
-
-
Method Detail
-
parseArgumentValue
public MaxAccess parseArgumentValue(StmtContext<?,?,?> ctx, String value)
Description copied from class:StatementSupport
Parses textual representation of argument in object representation.- Specified by:
parseArgumentValue
in classStatementSupport<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
- Parameters:
ctx
- Context, which may be used to access source-specific namespaces required for parsing.value
- String representation of value, as was present in text source.- Returns:
- Parsed value
-
internArgument
public String internArgument(String rawArgument)
Description copied from class:StatementSupport
Given a raw string representation of an argument, try to use a shared representation. Default implementation does nothing.- Overrides:
internArgument
in classStatementSupport<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
- Parameters:
rawArgument
- Argument string- Returns:
- A potentially-shard instance
-
createDeclared
protected MaxAccessStatement createDeclared(BoundStmtCtx<MaxAccess> ctx, ImmutableList<DeclaredStatement<?>> substatements)
- Specified by:
createDeclared
in classAbstractStatementSupport<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
-
attachDeclarationReference
protected MaxAccessStatement attachDeclarationReference(MaxAccessStatement stmt, DeclarationReference reference)
Description copied from class:AbstractStatementSupport
Attach specifiedDeclarationReference
to a baseline declared statement. If an implementation does not support attaching DeclarationReferences, it should return the statement unchanged.- Specified by:
attachDeclarationReference
in classAbstractStatementSupport<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
- Parameters:
stmt
- Declared statementreference
-DeclarationReference
to attach- Returns:
- Equivalent of stmt, potentially with specified reference attached.
-
createEffective
protected MaxAccessEffectiveStatement createEffective(EffectiveStmtCtx.Current<MaxAccess,MaxAccessStatement> stmt, ImmutableList<? extends EffectiveStatement<?,?>> substatements)
- Specified by:
createEffective
in classAbstractStatementSupport<MaxAccess,MaxAccessStatement,MaxAccessEffectiveStatement>
-
-