Building Parsers with Java
A B C D E F G H I J K L M N O P Q R S T U V W X Y

F

f - Variable in class sjm.examples.sling.AddFunctionCommand
 
f - Variable in class sjm.examples.sling.AssignFunctionCommand
 
f(double) - Method in class sjm.examples.sling.SlingFunction
This is the function that all subclasses implement, so that each function class provides a two-dimensional function of time.
f(double) - Method in class sjm.examples.sling.Random
Generate a random number r between 0 and 1, and return the point (t, r).
f(double) - Method in class sjm.examples.sling.Sin
Returns, essentially, sin(source.f(t)).
f(double) - Method in class sjm.examples.sling.Arithmetic
Returns the sum, difference, quotient, product or remainder (depending on the operator) of this object's source functions.
f(double) - Method in class sjm.examples.sling.Slider
Returns, essentially, a slider's value, which should be a number between 0 and 1.
f(double) - Method in class sjm.examples.sling.Cartesian
Combine the y components of the sources into a new point.
f(double) - Method in class sjm.examples.sling.T
Returns the given time
f(double) - Method in class sjm.examples.sling.Scale
Given the source functions aFrom, a, aTo, bFrom and bTo, this function varies from bFrom to bTo as "a" varies from aFrom to aTo.
f(double) - Method in class sjm.examples.sling.Polar
Combine the y components of the sources into a new point, using the first source for the sling's strap length, and the second source for the stone's angle.
f(double) - Method in class sjm.examples.sling.Sling
Combine the y components of the sources into a new point, using the first source for the sling's strap length, and the second source for the stone's speed.
f(double) - Method in class sjm.examples.sling.Abs
Returns, essentially, abs(source.f(t)).
f(double) - Method in class sjm.examples.sling.Floor
Returns, essentially, floor(source.f(t)).
f(double) - Method in class sjm.examples.sling.Variable
Throws an InternalError.
f(double) - Method in class sjm.examples.sling.Ceil
Returns, essentially, ceil(source.f(t)).
f(double) - Method in class sjm.examples.sling.Tan
Returns, essentially, tan(source.f(t)).
f(double) - Method in class sjm.examples.sling.Point
Points are not really functions at all, but the Point class subclasses SlingFunction so that they may serve in compositions of other functions.
f(double) - Method in class sjm.examples.sling.Cos
Returns, essentially, cos(source.f(t)).
f(String) - Method in class sjm.examples.string.StringFunction
Each subclass should implement this method in manner that applies a function to the input string.
f(String) - Method in class sjm.examples.string.Substring
Return a substring of the value of source.f(s) , where s is the supplied string, and source is this function's source function.
f(String) - Method in class sjm.examples.string.Trim
Return a trimmed version of the value of source.f(s), where s is the supplied string, and source is this function's source function.
f(String) - Method in class sjm.examples.string.Identity
Return the given string.
f(String) - Method in class sjm.examples.string.UpperCase
Return an uppercase version of the value of source.f(s), where s is the supplied string, and source is this function's source function.
f(String) - Method in class sjm.examples.string.LowerCase
Return a lowercase version of the value of source.f(s), where s is the supplied string, and source is this function's source function.
f0 - Variable in class sjm.examples.sling.FunctionComparison
 
f1 - Variable in class sjm.examples.sling.FunctionComparison
 
Fact - class sjm.engine.Fact.
A Fact is a Structure that contains only other Facts.
fact(Chip) - Static method in class sjm.examples.query.ChipSource
Create a chip fact from a chip object.
fact(Customer) - Static method in class sjm.examples.query.ChipSource
Create a customer fact from a customer object.
Fact(Object) - Constructor for class sjm.engine.Fact
Contructs a fact from the specified object.
Fact(Object, Fact[]) - Constructor for class sjm.engine.Fact
Constructs a fact with the specified functor and facts.
Fact(Object, Object) - Constructor for class sjm.engine.Fact
A convenience, equivalent to new Fact(functor, new Object[]{o}).
Fact(Object, Object[]) - Constructor for class sjm.engine.Fact
Constructs a fact with the specified functor, and with terms that are atoms wrapped around the supplied objects.
Fact(Object, Object, Object) - Constructor for class sjm.engine.Fact
A convenience, equivalent to new Fact(functor, new Object[]{o1, o2}).
Fact(Object, Term[]) - Constructor for class sjm.engine.Fact
Although "public", this method is not for public use.
fact(Order) - Static method in class sjm.examples.query.ChipSource
Create an order fact from an order object.
factor - Variable in class sjm.examples.arithmetic.ArithmeticParser
 
factor() - Method in class sjm.examples.midimath.Midiloop
Returns a parser that will recognize either numbers, or arithmetic expressions in parentheses.
factor() - Method in class sjm.examples.midimath.MidiloopNot
Returns a parser that will recognize either numbers, or arithmetic expressions in parentheses.
factor() - Method in class sjm.examples.query.ComparisonParser
 
factor() - Method in class sjm.examples.regular.RegularParser
 
factor() - Method in class sjm.examples.arithmetic.ArithmeticParser
 
factor() - Method in class sjm.examples.logic.LogikusParser
 
factorial(int) - Static method in class sjm.combinatorics.Combinatoric
 
facts(Object[]) - Static method in class sjm.engine.Fact
 
fence - Variable in class sjm.examples.pretty.FenceAssembler
 
fence - Variable in class sjm.examples.pretty.PrettyRepetitionAssembler
 
FenceAssembler - class sjm.examples.pretty.FenceAssembler.
Places a given "fence" or marker object on an assembly's stack.
FenceAssembler(Object) - Constructor for class sjm.examples.pretty.FenceAssembler
Construct an assembler that will place the given object on an assembly's stack.
FileString - class sjm.utensil.FileString.
This class has a static method that returns a file's characters as a single String.
FileString() - Constructor for class sjm.utensil.FileString
 
findChildWithChar(char) - Method in class sjm.parse.tokens.SymbolNode
 
findChildWithChar(char) - Method in class sjm.parse.tokens.SymbolRootNode
 
findDescendant(String) - Method in class sjm.parse.tokens.SymbolNode
 
firstName - Variable in class sjm.examples.karate.Student
 
firstName - Variable in class sjm.examples.chips.Customer
 
Floor - class sjm.examples.sling.Floor.
This class wraps a floor function around another source function.
Floor() - Constructor for class sjm.examples.sling.Floor
Constructs floor(t).
Floor(SlingFunction) - Constructor for class sjm.examples.sling.Floor
Constructs a function object that wraps a floor function around the given source function.
ForAssembler - class sjm.examples.sling.ForAssembler.
Builds a "for" command from elements on the stack, which should be: a variable, a "from" function, a "to" function, a '{' token, and a series of commands.
ForAssembler() - Constructor for class sjm.examples.sling.ForAssembler
 
ForCommand - class sjm.imperative.ForCommand.
This command mimics a normal "for" loop, such as:
ForCommand(Command, BooleanTerm, Command, Command) - Constructor for class sjm.imperative.ForCommand
Construct a "for" command from the given setup command, condition, endCommand, and bodyCommand.
ForCommand(Variable, double, double, double, Command) - Constructor for class sjm.imperative.ForCommand
Construct a "for" command that iterates the supplied variable over the doubles from the "from" parameter to the "to" parameter, stepping by the "step" parameter.
ForCommand(Variable, int, int, Command) - Constructor for class sjm.imperative.ForCommand
Construct a "for" command that iterates the supplied variable over the integers from the "from" parameter to the "to" parameter.
formerName - Variable in class sjm.examples.coffee.Coffee
 
formerName() - Method in class sjm.examples.coffee.CoffeeParser
 
FormerNameAssembler - class sjm.examples.coffee.FormerNameAssembler.
This assembler pops a string, and sets the target coffee's former name to this string.
FormerNameAssembler() - Constructor for class sjm.examples.coffee.FormerNameAssembler
 
FormerNameHelper - class sjm.examples.coffee.FormerNameHelper.
This helper sets a target coffee object's formerName attribute.
FormerNameHelper() - Constructor for class sjm.examples.coffee.FormerNameHelper
 
forStatement() - Method in class sjm.examples.sling.SlingParser
 
found - Variable in class sjm.examples.track.TrackException
 
fresh() - Method in class sjm.examples.sling.SlingFunction
Creates a copy of the object and initializes the source array to an array of the right length, but leaves the elements of the array empty.
freshTarget() - Method in class sjm.examples.query.JaqlTester
 
freshTarget() - Method in class sjm.parse.ParserTester
 
freshTarget() - Method in class sjm.examples.sling.SlingTester
 
from - Variable in class sjm.examples.string.Substring
 
function - Variable in class sjm.examples.sling.FunctionAssembler
 
function - Variable in class sjm.examples.sling.Renderable
 
FunctionAssembler - class sjm.examples.sling.FunctionAssembler.
This assembler uses information from a prototypical function object received in a constructor to guide the construction of a new function.
FunctionAssembler(SlingFunction) - Constructor for class sjm.examples.sling.FunctionAssembler
Construct a new function assembler, using the provided function as a prototype.
FunctionComparison - class sjm.examples.sling.FunctionComparison.
This class's constructor accepts two functions and an operator, and can evaluate and compare the functions.
FunctionComparison(String, SlingFunction, SlingFunction) - Constructor for class sjm.examples.sling.FunctionComparison
Create a comparison with the specified operator and comparison functions.
functor - Variable in class sjm.engine.Structure
 
functor() - Method in class sjm.examples.logic.LogikusParser
 
functorAndArityEquals(Structure) - Method in class sjm.engine.Structure
Returns true if this structure's functor and number of terms match the supplied structure.

by Steve Metsker
A B C D E F G H I J K L M N O P Q R S T U V W X Y