Java 类org.antlr.v4.runtime.misc.NotNull 实例源码

项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void enterConstant(@NotNull ArabicPrologParser.ConstantContext ctx) { 
    if (ctx.getParent() instanceof ArabicPrologParser.OperandContext)
        code += "";
    else {
        if(Parser.constants.Exist(ctx.getText()))
            code+="constants.getConstant(\""+ctx.getText()+"\"),";
        else
            code+="new Constant(\""+ctx.getText()+"\"),";
    }
}
项目:digraph-parser    文件:GraphParser.java   
public void enterNode_id(@NotNull DOTParser.Node_idContext ctx) {
    String nodeId = ctx.id().getText();
    GraphNode node = mNodeMap.get(nodeId);
    if (node == null) {
        node = new GraphNode(nodeId);
        mNodeMap.put(nodeId, node);
    }
    node.setAttributes(nodeAttrs);
}
项目:digraph-parser    文件:GraphParser.java   
public void exitEdge_stmt(@NotNull DOTParser.Edge_stmtContext ctx) {
    addEdges(edgeCtx.src.graph, edgeCtx.dest.graph, edgeCtx.attrs);

    // leave nested ctx, pop previous parent ctx
    edgeCtx = edgeCtx.parent;
    graphCtx = graphCtx.parent;
}
项目:digraph-parser    文件:GraphParser.java   
public void enterEdgeop(@NotNull DOTParser.EdgeopContext ctx) {
    addEdges(edgeCtx.src.graph, edgeCtx.dest.graph, edgeCtx.attrs);

    if (edgeCtx.srcFlag) {
        // pointing to src, shift to populate dest
        graphCtx = edgeCtx.dest;
        edgeCtx.srcFlag = false;
    }
    else {
        // pointing to dest already, shift src/dest for next edgeop
        edgeCtx.src = edgeCtx.dest;
        edgeCtx.dest = new GraphCtx(graphCtx.parent);
        graphCtx = edgeCtx.dest;
    }
}
项目:digraph-parser    文件:GraphParser.java   
public void syntaxError(@NotNull Recognizer<?, ?> recognizer,
        @Nullable Object offendingSymbol, int line,
        int charPositionInLine, @NotNull String msg,
        @Nullable RecognitionException e)
{
    mErrMsg = "at line " + line + ":" + charPositionInLine + " " + msg;
    throw e;
}
项目:digraph-parser    文件:GraphParser.java   
@Override
public void reportAmbiguity(@NotNull Parser recognizer,
                            @NotNull DFA dfa,
                            int startIndex,
                            int stopIndex,
                            boolean exact,
                            @Nullable BitSet ambigAlts,
                            @NotNull ATNConfigSet configs)
{
}
项目:digraph-parser    文件:GraphParser.java   
@Override
public void reportAttemptingFullContext(@NotNull Parser recognizer,
                                        @NotNull DFA dfa,
                                        int startIndex,
                                        int stopIndex,
                                        @Nullable BitSet conflictingAlts,
                                        @NotNull ATNConfigSet configs)
{
}
项目:digraph-parser    文件:GraphParser.java   
@Override
public void reportContextSensitivity(@NotNull Parser recognizer,
                                     @NotNull DFA dfa,
                                     int startIndex,
                                     int stopIndex,
                                     int prediction,
                                     @NotNull ATNConfigSet configs)
{
}
项目:aws-codecommit-trigger-plugin    文件:AwsCredentialsHelper.java   
@CheckForNull
public static AwsCredentials getCredentials(@NotNull String accessKey, @NotNull Secret secretKey) {
    if (StringUtils.isBlank(accessKey) || StringUtils.isBlank(secretKey.getPlainText())) {
        return null;
    }

    return CredentialsMatchers.firstOrNull(
        CredentialsProvider.lookupCredentials(AwsCredentials.class, (Item) null, ACL.SYSTEM, null, null),
        CredentialsMatchers.allOf(
            CredentialsMatchers.withProperty("accessKey", accessKey),
            CredentialsMatchers.withProperty("secretKey", secretKey)
        )
    );
}
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void enterAnonymous(@NotNull ArabicPrologParser.AnonymousContext ctx) {
    code+="new Anonymous(),";
}
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void exitOr(@NotNull ArabicPrologParser.OrContext ctx) { 
    code+="),";
}
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void enterRule(@NotNull ArabicPrologParser.RuleContext ctx) { 
    isQuery = false;
    code+="new Rule (";
}
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void enterRuleSet(@NotNull ArabicPrologParser.RuleSetContext ctx) {
    code+="new RuleSet (";
}
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void exitRuleSet(@NotNull ArabicPrologParser.RuleSetContext ctx) {
    code+=")";
}
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void enterAnd(@NotNull ArabicPrologParser.AndContext ctx) { 
    code+="new And (";
}
项目:digraph-parser    文件:GraphParser.java   
public void enterGraph(@NotNull DOTParser.GraphContext ctx) {
    if (ctx.id() != null) mGraphId = ctx.id().getText();
}
项目:digraph-parser    文件:GraphParser.java   
public void exitGraph(@NotNull DOTParser.GraphContext ctx) {
    // no-op
}
项目:digraph-parser    文件:GraphParser.java   
public void enterNode_stmt(@NotNull DOTParser.Node_stmtContext ctx) {
    populateAttributes(ctx.attr_list(), nodeAttrs);
}
项目:digraph-parser    文件:GraphParser.java   
public void exitNode_stmt(@NotNull DOTParser.Node_stmtContext ctx) {
    nodeAttrs.clear();
}
项目:digraph-parser    文件:GraphParser.java   
public void enterNode_id(@NotNull DOTParser.Node_idContext ctx) {
    String nodeId = ctx.id().getText();
    graphCtx.addNode(nodeId);
}
项目:digraph-parser    文件:GraphParser.java   
public void enterSubgraph(@NotNull DOTParser.SubgraphContext ctx) {
    // enter new nested subgraph ctx
    graphCtx = new GraphCtx(graphCtx);
}
项目:digraph-parser    文件:GraphParser.java   
public void enterEdge_stmt(@NotNull DOTParser.Edge_stmtContext ctx) {
    // enter new nested edge ctx
    edgeCtx = new EdgeCtx(edgeCtx, new GraphCtx(graphCtx), new GraphCtx(graphCtx), ctx.attr_list());
    graphCtx = edgeCtx.src; // point to src, next node/subgraph populates it
}
项目:digraph-parser    文件:GraphParser.java   
public void exitEdgeop(@NotNull DOTParser.EdgeopContext ctx) {
    // no-op
}
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologBaseListener.java   
public void enterOr(@NotNull ArabicPrologParser.OrContext ctx) { 
    code+="new Or (";
}
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void exitAttr_stmt(@NotNull DOTParser.Attr_stmtContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterEdgeop(@NotNull DOTParser.EdgeopContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterStmt_list(@NotNull DOTParser.Stmt_listContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void exitStmt_list(@NotNull DOTParser.Stmt_listContext ctx) { }
项目:Mujeed-Arabic-Prolog    文件:ArabicPrologListener.java   
/**
 * Enter a parse tree produced by {@link ArabicPrologParser#operand}.
 * @param ctx the parse tree
 */
void enterOperand(@NotNull ArabicPrologParser.OperandContext ctx);
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void exitStmt(@NotNull DOTParser.StmtContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterEdgeRHS(@NotNull DOTParser.EdgeRHSContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterNode_id(@NotNull DOTParser.Node_idContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void exitNode_id(@NotNull DOTParser.Node_idContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterId(@NotNull DOTParser.IdContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void exitId(@NotNull DOTParser.IdContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterSubgraph(@NotNull DOTParser.SubgraphContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void exitSubgraph(@NotNull DOTParser.SubgraphContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterGraph(@NotNull DOTParser.GraphContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void exitGraph(@NotNull DOTParser.GraphContext ctx) { }
项目:digraph-parser    文件:DOTBaseListener.java   
/**
 * {@inheritDoc}
 *
 * <p>The default implementation does nothing.</p>
 */
/*@Override*/ public void enterA_list(@NotNull DOTParser.A_listContext ctx) { }