Class LibraryFunction
- java.lang.Object
- 
- software.amazon.smithy.rulesengine.language.syntax.SyntaxElement
- 
- software.amazon.smithy.rulesengine.language.syntax.expressions.Expression
- 
- software.amazon.smithy.rulesengine.language.syntax.expressions.functions.LibraryFunction
 
 
 
- 
- All Implemented Interfaces:
- FromSourceLocation,- ToNode,- TypeCheck,- ToCondition,- ToExpression
 - Direct Known Subclasses:
- AwsPartition,- BooleanEquals,- GetAttr,- IsSet,- IsValidHostLabel,- IsVirtualHostableS3Bucket,- Not,- ParseArn,- ParseUrl,- StringEquals,- Substring,- UriEncode
 
 public abstract class LibraryFunction extends Expression A function which is constructed from aFunctionDefinition.
- 
- 
Field SummaryFields Modifier and Type Field Description protected FunctionDefinitiondefinitionprotected FunctionNodefunctionNode
 - 
Constructor SummaryConstructors Constructor Description LibraryFunction(FunctionDefinition definition, FunctionNode functionNode)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected ExpressionexpectOneArgument()java.util.List<Expression>getArguments()java.lang.StringgetName()Returns the name of this function, eg.SourceLocationgetSourceLocation()Gets the source location of a value.inthashCode()NodetoNode()Converts a value to aNode.java.lang.StringtoString()protected TypetypeCheckLocal(Scope<Type> scope)- 
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.Expressionaccept, fromNode, getLiteral, getReference, of, of, of, parseShortform, toConditionBuilder, toExpression, type, typeCheck
 - 
Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.SyntaxElementbooleanEqual, getAttr, getAttr, isSet, isValidHostLabel, not, parseUrl, stringEqual, substring, template
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface software.amazon.smithy.rulesengine.language.syntax.ToConditiontoCondition, toCondition
 
- 
 
- 
- 
- 
Field Detail- 
definitionprotected final FunctionDefinition definition 
 - 
functionNodeprotected final FunctionNode functionNode 
 
- 
 - 
Constructor Detail- 
LibraryFunctionpublic LibraryFunction(FunctionDefinition definition, FunctionNode functionNode) 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Returns the name of this function, eg.isSet,parseUrl- Returns:
- The name
 
 - 
getArgumentspublic java.util.List<Expression> getArguments() - Returns:
- The arguments to this function
 
 - 
expectOneArgumentprotected Expression expectOneArgument() 
 - 
getSourceLocationpublic SourceLocation getSourceLocation() Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
- getSourceLocationin interface- FromSourceLocation
- Overrides:
- getSourceLocationin class- Expression
- Returns:
- Returns the source location of the value.
 
 - 
typeCheckLocalprotected Type typeCheckLocal(Scope<Type> scope) - Specified by:
- typeCheckLocalin class- Expression
 
 - 
toNodepublic Node toNode() Description copied from interface:ToNodeConverts a value to aNode.- Returns:
- Returns the creates Node.
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Specified by:
- equalsin class- Expression
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein class- Expression
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-