Methods
Modifier and Type |
Method and Description |
Node |
addRootNode(Node topOfAST,
ISourcePosition position) |
void |
allowDubyExtension(ISourcePosition position) |
Node |
appendToBlock(Node head,
Node tail) |
Node |
arg_add(ISourcePosition position,
Node node1,
Node node2) |
Node |
arg_append(Node node1,
Node node2) |
Node |
arg_blk_pass(Node firstNode,
BlockPassNode secondNode) |
Node |
arg_concat(ISourcePosition position,
Node node1,
Node node2) |
ArgumentNode |
arg_var(Token identifier) |
Node |
aryset(Node receiver,
Node index)
Define an array set condition so we can return lhs
|
AssignableNode |
assignable(Token lhs,
Node value) |
static int |
associateEncoding(org.jruby.util.ByteList buffer,
org.jcodings.Encoding newEncoding,
int codeRange) |
Node |
asSymbol(ISourcePosition position,
Node value) |
Node |
attrset(Node receiver,
String name)
Define an attribute set condition so we can return lhs
|
void |
backrefAssignError(Node node) |
boolean |
checkExpression(Node node) |
protected void |
checkRegexpSyntax(org.jruby.util.ByteList value,
RegexpOptions options) |
void |
checkUselessStatement(Node node)
Check to see if current node is an useless statement.
|
void |
checkUselessStatements(BlockNode blockNode)
Check all nodes but the last one in a BlockNode for useless (void context) statements.
|
DStrNode |
createDStrNode(ISourcePosition position) |
ISourcePosition |
createEmptyArgsNodePosition(ISourcePosition pos) |
Token |
formal_argument(Token identifier) |
Node |
getConditionNode(Node node) |
ParserConfiguration |
getConfiguration() |
StaticScope |
getCurrentScope() |
int |
getInSingle()
Getter for property inSingle.
|
Node |
getMatchNode(Node firstNode,
Node secondNode) |
Node |
getOperatorCallNode(Node firstNode,
String operator) |
Node |
getOperatorCallNode(Node firstNode,
String operator,
Node secondNode) |
Node |
getOperatorCallNode(Node firstNode,
String operator,
Node secondNode,
ISourcePosition defaultPosition) |
ISourcePosition |
getPosition(ISourcePositionHolder start) |
RubyParserResult |
getResult()
Gets the result.
|
Node |
getReturnArgsNode(Node node) |
Node |
gettable(Token token)
Create AST node representing variable type it represents.
|
Node |
gettable2(Node node)
We know for callers of this that it cannot be any of the specials checked in gettable.
|
protected void |
getterIdentifierError(ISourcePosition position,
String identifier) |
void |
initTopLocalVariables()
Description of the RubyMethod
|
boolean |
is_local_id(Token identifier) |
boolean |
isBreakStatement(Node node)
Is the supplied node a break/control statement?
|
boolean |
isInDef() |
boolean |
isInSingle()
Getter for property inSingle.
|
boolean |
isLiteral(Node node)
Is this a literal in the sense that MRI has a NODE_LIT for.
|
KeywordArgNode |
keyword_arg(ISourcePosition position,
AssignableNode assignable) |
ListNode |
list_append(Node list,
Node item) |
ListNode |
list_concat(Node first,
Node second) |
Node |
literal_concat(ISourcePosition position,
Node head,
Node tail) |
protected Node |
makeNullNil(Node node) |
FloatNode |
negateFloat(FloatNode floatNode) |
Node |
negateInteger(Node integerNode) |
Node |
new_aref(Node receiver,
Token name,
Node argsNode) |
ArgsTailHolder |
new_args_tail(ISourcePosition position,
ListNode keywordArg,
Token keywordRestArgName,
BlockArgNode blockArg) |
Node |
new_args(ISourcePosition position,
ListNode pre,
ListNode optional,
RestArgNode rest,
ListNode post,
ArgsTailHolder tail) |
Node |
new_args(ISourcePosition position,
ListNode pre,
ListNode optional,
RestArgNode rest,
ListNode post,
BlockArgNode block) |
Node |
new_attrassign(ISourcePosition position,
Node receiver,
String name,
Node args) |
Node |
new_bv(Token identifier) |
Node |
new_call(Node receiver,
Token name,
Node argsNode,
Node iter) |
Colon2Node |
new_colon2(ISourcePosition position,
Node leftNode,
String name) |
Colon3Node |
new_colon3(ISourcePosition position,
String name) |
Node |
new_fcall(Token operation,
Node args,
Node iter) |
IterNode |
new_iter(ISourcePosition position,
Node vars,
StaticScope scope,
Node body) |
Node |
new_opAssign(AssignableNode lhs,
String asgnOp,
Node rhs) |
Node |
new_opElementAsgnNode(ISourcePosition position,
Node receiverNode,
String operatorName,
Node argsNode,
Node valueNode) |
Node |
new_super(Node args,
Token operation) |
Node |
new_yield(ISourcePosition position,
Node node) |
Node |
newAlias(ISourcePosition position,
Node newNode,
Node oldNode) |
AndNode |
newAndNode(ISourcePosition position,
Node left,
Node right) |
ArrayNode |
newArrayNode(ISourcePosition position,
Node firstNode) |
BlockArgNode |
newBlockArg(ISourcePosition position,
Token nameToken) |
BlockArg18Node |
newBlockArg18(ISourcePosition position,
Node blockValue,
Node args) |
CaseNode |
newCaseNode(ISourcePosition position,
Node expression,
Node firstWhenNode)
Ok I admit that this is somewhat ugly.
|
Node |
newEvStrNode(ISourcePosition position,
Node node) |
Node |
newline_node(Node node,
ISourcePosition position)
Wraps node with NEWLINE node.
|
OrNode |
newOrNode(ISourcePosition position,
Node left,
Node right) |
Node |
newRegexpNode(ISourcePosition position,
Node contents,
RegexpNode end) |
SplatNode |
newSplatNode(ISourcePosition position,
Node node) |
SValueNode |
newSValueNode(ISourcePosition position,
Node node) |
Node |
newUndef(ISourcePosition position,
Node nameNode) |
WhenNode |
newWhenNode(ISourcePosition position,
Node expressionNodes,
Node bodyNode,
Node nextCase) |
Node |
node_assign(Node lhs,
Node rhs) |
void |
popCurrentScope() |
ISourcePosition |
position(ISourcePositionHolder one,
ISourcePositionHolder two) |
void |
pushBlockScope() |
void |
pushLocalScope() |
void |
regexpFragmentCheck(RegexpNode end,
org.jruby.util.ByteList value) |
void |
reset() |
Node |
ret_args(Node node,
ISourcePosition position) |
void |
setConfiguration(ParserConfiguration configuration)
Sets the configuration.
|
void |
setInDef(boolean inDef) |
void |
setInSingle(int inSingle)
Setter for property inSingle.
|
void |
setLexer(RubyYaccLexer lexer) |
void |
setResult(RubyParserResult result)
Sets the result.
|
void |
setWarnings(IRubyWarnings warnings) |
Token |
shadowing_lvar(Token identifier) |
Node |
splat_array(Node node)
If node is a splat and it is splatting a literal array then return the literal array.
|
Node |
unwrapNewlineNode(Node node) |
void |
warn(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data) |
void |
warning(IRubyWarnings.ID id,
ISourcePosition position,
String message,
Object... data) |
void |
warningUnlessEOption(IRubyWarnings.ID id,
Node node,
String message) |
void |
warnUnlessEOption(IRubyWarnings.ID id,
Node node,
String message) |
void |
yyerror(String message)
generate parsing error
|
void |
yyerror(String message,
String[] expected,
String found)
generate parsing error
|